Skip to main content

Function: createWorkflowToken()

createWorkflowToken(workflowType): InjectionToken

Defined in: src/utils/workflow-token.ts:18

Create a unique NestJS injection token for a workflow proxy.

Pair with createWorkflowProvider to register a typed proxy provider that can be injected by this token anywhere in the application.

Parameters​

workflowType​

string

Returns​

InjectionToken

Example​

export const ORDER_WORKFLOW = createWorkflowToken('orderWorkflow');