tuil
ReferencePackages@mwillbanks/tuil-workflowAPI

WorkflowEvent

interface exported by @mwillbanks/tuil-workflow.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-workflow.

export interface WorkflowEvent<TState> {
  readonly type: WorkflowEventType;
  readonly snapshot: WorkflowSnapshot<TState>;
  readonly step?: string;
  readonly error?: unknown;
  readonly at: number;
}

Members

MemberTypeRequiredDescriptionRelated types
typeWorkflowEventTypeYesThe type member uses the WorkflowEventType contract.WorkflowEventType
snapshotWorkflowSnapshot<TState>YesThe snapshot member uses the WorkflowSnapshot<TState> contract.WorkflowSnapshot
stepstring | undefinedNoThe step member uses the string | undefined contract.
errorunknownNoThe error member uses the unknown contract.
atnumberYesThe at member uses the number contract.

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