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:

NameTypeDescription
...argsany[]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:

NameType
targetany
...argsany[]

beforeDefine

beforeDefine: function

Type declaration:

▸ (target: any, ...args: any[]): void

Parameters:

NameType
targetany
...argsany[]