AIDK API Reference / aidk-kernel / procedureDecorator
Function: procedureDecorator() ​
ts
function procedureDecorator(options?: ProcedureOptions): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => void | TypedPropertyDescriptor<T>;Defined in: packages/kernel/src/procedure.ts:1460
Parameters ​
| Parameter | Type |
|---|---|
options? | ProcedureOptions |
Returns ​
ts
<T>(
target: any,
propertyKey: string,
descriptor: TypedPropertyDescriptor<T>): void | TypedPropertyDescriptor<T>;Type Parameters ​
| Type Parameter |
|---|
T extends (...args: any[]) => any |
Parameters ​
| Parameter | Type |
|---|---|
target | any |
propertyKey | string |
descriptor | TypedPropertyDescriptor<T> |
Returns ​
void | TypedPropertyDescriptor<T>
Procedure ​
decorator - Transforms method into Procedure