tuil
ReferencePackages@mwillbanks/tuil-workflowAPI

transition

function exported by @mwillbanks/tuil-workflow.

View rawEdit

function

Public function exported by @mwillbanks/tuil-workflow.

export function transition<TState>(
  from: string,
  to: string,
  options: Pick<WorkflowTransition<TState>, "when"> = {},
): WorkflowTransition<TState>;

Members

This declaration has no public members.

Parameters

MemberTypeRequiredDescriptionRelated types
fromstringYesSupplies the from value as string.
tostringYesSupplies the to value as string.
optionsPick<WorkflowTransition<TState>, "when">NoSupplies the options value as Pick<WorkflowTransition<TState>, "when">.WorkflowTransition

Returns

WorkflowTransition<TState> — Returns a value that satisfies WorkflowTransition<TState>.

Related types: WorkflowTransition

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-workflow

On this page