[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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
context | DecoratorContext |
target | any |
…customArgs | any[] |
Returns
Section titled “Returns”void | DecoratorValidatorCallbacks
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
namespace? | string | Namespace associated with a JavaScript decorator export. |