Function: abstract()
Less than 1 minute
AspectJS • Docs
Function: abstract()
abstract<
T
>():T
Annotating abstract methods is not allowed in TypeScript. Instead, we have to define concrete, empty methods, awaiting for an annotation to actually define its behaviour. However, typescript will throw a compilation error if that method declares a return value but the body is empty. The abstract function is a placeholder that stands for a return value. It will throw if called as is, but it is intended to be bypassed by the action of an annotation.
Type Parameters
• T
the type of the value to be replaced.
Returns
T
Defined in
packages/common/utils/src/abstract/abstract.type.ts:48