packages/engine/workflowContext
Epic #223 -- read a machine's typed context from source (AST only).
Engine, v0.9. Source: packages/engine/workflowContext.mjs.
Functions#
contextTypeInfo()#
contextTypeInfo(
ast,setupObj,source):object
Defined in: packages/engine/workflowContext.mjs:32
Locate the type that describes the context: setup({ types: {} as { context: X } })
where X is an interface / type-literal alias in this file, or an inline literal.
Parameters#
ast
any
setupObj
any
source
any
Returns#
object
body
body:
any
kind
kind:
"literal"|"interface"
members
members:
object[]
setupObjectOf()#
setupObjectOf(
call):any
Defined in: packages/engine/workflowContext.mjs:11
The setup({...}) argument object when the machine is setup(...).createMachine(...).
Parameters#
call
any
Returns#
any