Skip to main content

Function: normalizeDefinition()

Call Signature​

normalizeDefinition(definition): WorkflowDefinition

Rewrite legacy mirrors into canonical positions (spec 01 §2). See the module comment for the exact rules. Anything that is not a definition object is returned unchanged.

Parameters​

definition​

WorkflowDefinition

Returns​

WorkflowDefinition

Call Signature​

normalizeDefinition(definition): unknown

Rewrite legacy mirrors into canonical positions (spec 01 §2). See the module comment for the exact rules. Anything that is not a definition object is returned unchanged.

Parameters​

definition​

unknown

Returns​

unknown