@bitsinfra/fusee
    Preparing search index...

    Function workflow

    • Defines a workflow type:

      export const checkout = workflow("checkout", async (ctx, order: Order) => { ... });
      export const nightly = workflow("nightly", { version: 2, timeout: "1h" }, async (ctx) => { ... });
      

      Type Parameters

      • I = unknown
      • O = unknown

      Parameters

      Returns WorkflowDefinition<I, O>

    • Defines a workflow type:

      export const checkout = workflow("checkout", async (ctx, order: Order) => { ... });
      export const nightly = workflow("nightly", { version: 2, timeout: "1h" }, async (ctx) => { ... });
      

      Type Parameters

      • I = unknown
      • O = unknown

      Parameters

      Returns WorkflowDefinition<I, O>

    • A definition that only names a type (another process runs its code).

      Type Parameters

      • I = unknown
      • O = unknown

      Parameters

      • name: string

      Returns WorkflowDefinition<I, O>