Skip to main content
Version: 1.0.0-development.2

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

NameType
SuperTypesextends unknown[]
SuperConstructorTypesextends { [Index in string | number | symbol]: AbstractConstructor<SuperTypes[Index]> }

Parameters

NameTypeDescription
...superConstructorsSuperConstructorTypesSuper classes to register the decorated class as an instance of.

Returns

fn

Decorator function.

▸ <Type, Parameters, ConstructorType>(constructor, _?): void

Type parameters
NameType
Typeextends unknown
Parametersextends unknown[]
ConstructorTypeextends AbstractConstructor<Type, Parameters>
Parameters
NameType
constructorConstructorType
_?ClassDecoratorContext<ConstructorType>
Returns

void

See

Defined in

core/metatag.ts:13