TOC Toolkit API - v0.1.0
Preparing search index...
toc-toolkit/machines
MachineDraft
addTransition
Function addTransition
addTransition
<
D
extends
AnyMachineDraft
>
(
draft
:
D
,
from
:
`
state:
${
string
}
`
,
to
:
`
state:
${
string
}
`
,
newId
:
()
=>
`
transition:
${
string
}
`
,
)
:
EditedDraft
<
D
>
Adds a default transition when both endpoints exist and the source has an available rule.
Type Parameters
D
extends
AnyMachineDraft
Parameters
draft
:
D
from
:
`
state:
${
string
}
`
to
:
`
state:
${
string
}
`
newId
:
()
=>
`
transition:
${
string
}
`
Returns
EditedDraft
<
D
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
TOC Toolkit API - v0.1.0
Loading...
Adds a default transition when both endpoints exist and the source has an available rule.