Skip to content

[F] createDecoratorDefinition

function createDecoratorDefinition<T, P, S>(definition): DecoratorValidator<T, P, S>

Type Parameters

Type Parameter
T extends TypeKind
P extends readonly DecoratorParamDefinition<TypeKind>[]
S extends undefined | DecoratorParamDefinition<TypeKind>

Parameters

ParameterType
definitionDecoratorDefinition<T, P, S>

Returns

DecoratorValidator<T, P, S>

Deprecated

use extern dec definition in TypeSpec instead.