[I] DecoratorContext
Properties
| Property | Type | Description | 
|---|---|---|
 decoratorTarget | DiagnosticTarget | Point to the decorator target | 
 program | Program | - | 
Methods
call()
call<T, A, R>(   decorator,   target, ...   args): RHelper 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()
getArgumentTarget(paramIndex): undefined | DiagnosticTargetFunction 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
Example
@foo("bar", 123) -> $foo(context, target, arg0: string, arg1: number); getArgumentTarget(0) -> target for arg0 getArgumentTarget(1) -> target for arg1