Interface ClassDecoratorContext<Class>
interface ClassDecoratorContext<
Class extends
abstract new (...args: any) => any = abstract new (...args: any) => any,
> {
kind: "class";
metadata: DecoratorMetadataObject;
name: string;
addInitializer(initializer: (this: Class) => void): void;
}
Class extends
abstract new (...args: any) => any = abstract new (...args: any) => any,
> {
kind: "class";
metadata: DecoratorMetadataObject;
name: string;
addInitializer(initializer: (this: Class) => void): void;
}
Type Parameters
Index
Properties
Methods
Properties
Readonly
kind
kind: "class"
The kind of element that was decorated.
Readonly
metadata
Readonly
name
name: string
The name of the decorated class.
Context provided to a class decorator.