Module: core/metatag
References
default
Renames and re-exports metatag
Functions
metatag
▸ metatag<SuperTypes
, SuperConstructorTypes
>(...superConstructors
): <Type, Parameters, ConstructorType>(constructor
: ConstructorType
, _?
: ClassDecoratorContext
<ConstructorType
>) => void
Registers the decorated class as an instance of the specified super classes.
Type parameters
Name | Type |
---|---|
SuperTypes | extends unknown [] |
SuperConstructorTypes | extends { [Index in string | number | symbol]: AbstractConstructor<SuperTypes[Index]> } |
Parameters
Name | Type | Description |
---|---|---|
...superConstructors | SuperConstructorTypes | Super classes to register the decorated class as an instance of. |
Returns
fn
Decorator function.
▸ <Type
, Parameters
, ConstructorType
>(constructor
, _?
): void
Type parameters
Name | Type |
---|---|
Type | extends unknown |
Parameters | extends unknown [] |
ConstructorType | extends AbstractConstructor <Type , Parameters > |
Parameters
Name | Type |
---|---|
constructor | ConstructorType |
_? | ClassDecoratorContext <ConstructorType > |
Returns
void
See
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/hasInstance
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/constructor