typend
Defines a type by enabling declaration reflection so it can be converted later on for runtime validation.
example
define()
class MyType {}
Callable
▸ define(...args
: any[]): MarkReflective‹ClassDecorator›
Defines a type by enabling declaration reflection so it can be converted later on for runtime validation.
example
define()
class MyType {}
Parameters:
Name | Type | Description |
---|---|---|
...args | any[] | Optional arguments that will be passed back to before/after hooks. |
Returns: MarkReflective‹ClassDecorator›
Marked class as reflective.
Index
Variables
Variables
afterDefine
• afterDefine: function
Type declaration:
▸ (target
: any, ...args
: any[]): void
Parameters:
Name | Type |
---|---|
target | any |
...args | any[] |
beforeDefine
• beforeDefine: function
Type declaration:
▸ (target
: any, ...args
: any[]): void
Parameters:
Name | Type |
---|---|
target | any |
...args | any[] |