Skip to content

[I] DecoratorFunction

Signature for a decorator JS implementation function. Use @typespec/tspd to generate an accurate signature from the extern dec

DecoratorFunction(
context,
target,
...customArgs
): void | DecoratorValidatorCallbacks;

Apply the decorator to its target and optionally register deferred validation.

ParameterType
contextDecoratorContext
targetany
…customArgsany[]

void | DecoratorValidatorCallbacks

PropertyTypeDescription
namespace?stringNamespace associated with a JavaScript decorator export.