[I] DecoratorContext
Properties
Property | Type | Description |
---|---|---|
decoratorTarget | DiagnosticTarget | Point to the decorator target |
program | Program | - |
Methods
call()
Helper to call out to another decorator
Type Parameters
Type Parameter |
---|
T extends Type |
A extends any [] |
R |
Parameters
Parameter | Type | Description |
---|---|---|
decorator | (context , target , …args ) => R | Other decorator function |
target | T | - |
…args | A | Args to pass to other decorator function |
Returns
R
getArgumentTarget()
Function that can be used to retrieve the target for a parameter at the given index.
Parameters
Parameter | Type | Description |
---|---|---|
paramIndex | number | Parameter index in the typespec |
Returns
undefined
| DiagnosticTarget