Restate Typescript SDK
    Preparing search index...

    Type Alias WorkflowOptions

    WorkflowOptions: ServiceOptions & {
        enableLazyState?: boolean;
        state?: StatePreload;
        workflowRetention?: Duration | number;
    }

    Type Declaration

    • OptionalenableLazyState?: boolean

      Use state instead: enableLazyState: true is equivalent to state: { preload: false }.

    • Optionalstate?: StatePreload

      Configures which state keys are preloaded ("eager state") for all invocations to this workflow. Can be overridden per handler. See StatePreload.

    • OptionalworkflowRetention?: Duration | number

      The retention duration for this workflow.

      NOTE: You can set this field only if you register this endpoint against restate-server >= 1.4, otherwise the service discovery will fail.