Metakit / @doeixd/metakit/machine
Entry
type · packages/metakit/src/machinePhaseTypes.ts:122
type Entry<State, Input, P, L extends string, N extends string> = {
readonly required: {
readonly with: Fields<State, Input, P, N>
readonly writes?: Writes<State, Input>
}
readonly optional:
| Writes<State, Input>
| {
readonly with: Fields<State, Input, P, N>
readonly writes?: Writes<State, Input>
}
readonly none: Writes<State, Input>
}[Gives<P, L, N>]What a transition from L into N gives besides the phase: its writes,
and, for a variant with fields, those fields as with.