Skip to content

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 ​

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>

Procedure ​

decorator - Transforms method into Procedure

Released under the MIT License.