AIDK API Reference / aidk-kernel / hookDecorator
Function: hookDecorator() ​
ts
function hookDecorator(options?: ProcedureOptions): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => void | TypedPropertyDescriptor<T>;Defined in: packages/kernel/src/procedure.ts:1495
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>
Hook ​
decorator - Transforms method into Procedure (hook)