Entity / foldkit-entity/laws
LawEdge
const · packages/entity/src/laws.ts:770
const LawEdge: Data.TaggedEnum.Constructor<
| {
readonly _tag: 'Reads'
readonly law: string
readonly space: 'entity'
readonly path: ReadonlyArray<string>
}
| {
readonly _tag: 'Writes'
readonly transition: string
readonly space: 'entity'
readonly path: ReadonlyArray<string>
}
| {
readonly _tag: 'From'
readonly transition: string
readonly entity: string
readonly state: string
}
| {
readonly _tag: 'To'
readonly transition: string
readonly entity: string
readonly state: string
}
| {
readonly _tag: 'Keeps'
readonly transition: string
readonly law: string
readonly evidence: Evidence
}
>Its type
type LawEdge = Data.TaggedEnum<{
Reads: {
readonly law: string
readonly space: 'entity'
readonly path: ReadonlyArray<string>
}
Writes: {
readonly transition: string
readonly space: 'entity'
readonly path: ReadonlyArray<string>
}
From: {
readonly transition: string
readonly entity: string
readonly state: string
}
To: {
readonly transition: string
readonly entity: string
readonly state: string
}
Keeps: {
readonly transition: string
readonly law: string
readonly evidence: Evidence
}
}>An edge of the law half of the graph, naming its nodes by id or path, each path an Entity member.