Metakit / @doeixd/metakit/machine

EachLifted

interface · packages/metakit/src/machineEach.ts:26

interface EachLifted<
  Outer,
  KeyField extends string,
  KeyValue,
  Transitions extends Readonly<Record<string, unknown>>,
> {
  readonly transitions: {
    readonly [K in keyof Transitions & string]: Transition.Transition<
      Outer,
      InputOf<Transitions[K]> & {
        readonly [P in KeyField]: KeyValue
      },
      TransitionEmit<Transitions[K]>,
      SuppliedOf<Transitions[K]>,
      InputServicesOf<Transitions[K]>
    > & {
      readonly name: K
    }
  }
}

A child Machine's transitions, each lifted to run on one keyed element of a list (Machine.each).

Members

EachLifted.transitions

property · packages/metakit/src/machineEach.ts:32

readonly transitions: {
  readonly [K in keyof Transitions & string]: Transition.Transition<
    Outer,
    InputOf<Transitions[K]> & {
      readonly [P in KeyField]: KeyValue
    },
    TransitionEmit<Transitions[K]>,
    SuppliedOf<Transitions[K]>,
    InputServicesOf<Transitions[K]>
  > & {
    readonly name: K
  }
}