Metakit / @doeixd/metakit/temporal
discharge
function · packages/metakit/src/temporalDischarge.ts:50
function discharge<
Name extends string,
Over extends string,
State,
StepName extends string,
>(
obligation: WalkObligation<Name, Over>,
scenario: Scenario<State, StepName, NoInfer<Over>>,
options?: WalkOptions,
): Discharge<Name>Walk scenario for obligation. Throws when the scenario has no step for
one of the obligation's over (a pair of one transition needs two steps of
it). An either-order obligation matches the first distinct occurrences in
scenario order and runs each feasible direction before the seeded walk.
Replay a forced order with the same scenario and
discharge options, or use the step names in the failing interleaving.