tuil
ReferencePackages@mwillbanks/tuil-workflowAPI

PersistedWorkflow

interface exported by @mwillbanks/tuil-workflow.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-workflow.

export interface PersistedWorkflow<TState> {
  readonly version: number;
  readonly state: TState;
  readonly currentStep?: string;
  readonly completedSteps: readonly string[];
  readonly skippedSteps: readonly string[];
  readonly history: readonly string[];
  readonly status?: WorkflowStatus;
  readonly errors?: readonly string[];
  readonly nested?: PersistedWorkflow<unknown>;
  readonly parallel?: readonly WorkflowParallelSnapshot[];
  readonly operations?: readonly OperationSnapshot[];
}

Members

MemberTypeRequiredDescriptionRelated types
versionnumberYesThe version member uses the number contract.
stateTStateYesThe state member uses the TState contract.
currentStepstring | undefinedNoThe currentStep member uses the string | undefined contract.
completedStepsreadonly string[]YesThe completedSteps member uses the readonly string[] contract.
skippedStepsreadonly string[]YesThe skippedSteps member uses the readonly string[] contract.
historyreadonly string[]YesThe history member uses the readonly string[] contract.
statusWorkflowStatus | undefinedNoThe status member uses the WorkflowStatus | undefined contract.WorkflowStatus
errorsreadonly string[] | undefinedNoThe errors member uses the readonly string[] | undefined contract.
nestedPersistedWorkflow<unknown> | undefinedNoThe nested member uses the PersistedWorkflow<unknown> | undefined contract.PersistedWorkflow
parallelreadonly WorkflowParallelSnapshot[] | undefinedNoThe parallel member uses the readonly WorkflowParallelSnapshot[] | undefined contract.WorkflowParallelSnapshot
operationsreadonly OperationSnapshot<unknown>[] | undefinedNoThe operations member uses the readonly OperationSnapshot<unknown>[] | undefined contract.OperationSnapshot

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-workflow

On this page