@ue-too/being-portable / PortableContext
介面: PortableContext
定義於: being-portable/src/api-types.ts:26
A read-only view of a portable machine's context. Only events change it.
Extends
BaseContext
方法
cleanup()
cleanup():
void
定義於: being/dist/interface.d.ts:31
回傳
void
繼承自
BaseContext.cleanup
fields()
fields():
Readonly<Record<string,Value>>
定義於: being-portable/src/api-types.ts:30
Every field's current value, frozen.
回傳
Readonly<Record<string, Value>>
get()
get(
field):Value
定義於: being-portable/src/api-types.ts:28
The field's current value. Lists are frozen. Throws for an unknown field.
參數
field
string
回傳
setup()
setup():
void
定義於: being/dist/interface.d.ts:30
回傳
void
繼承自
BaseContext.setup