Entity / foldkit-entity/laws
LawNode
const · packages/entity/src/laws.ts:756
const LawNode: Data.TaggedEnum.Constructor<
| {
readonly _tag: 'Path'
readonly space: 'entity'
readonly path: ReadonlyArray<string>
}
| {
readonly _tag: 'Transition'
readonly id: string
readonly kind: 'write'
readonly entity: string
}
| { readonly _tag: 'Law'; readonly id: string }
| { readonly _tag: 'State'; readonly entity: string; readonly name: string }
>Its type
type LawNode = Data.TaggedEnum<{
Path: {
readonly space: 'entity'
readonly path: ReadonlyArray<string>
}
Transition: {
readonly id: string
readonly kind: 'write'
readonly entity: string
}
Law: {
readonly id: string
}
State: {
readonly entity: string
readonly name: string
}
}>A node of the law half of foldkit-surface's graph, as plain data.