Skip to content

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 ​

ParameterType
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 ​

ParameterType
targetany
propertyKeystring
descriptorTypedPropertyDescriptor<T>

Returns ​

void | TypedPropertyDescriptor<T>

Hook ​

decorator - Transforms method into Procedure (hook)

Released under the MIT License.