Metakit / @doeixd/metakit/temporal
protocol
function · packages/metakit/src/temporalDischarge.ts:172
function protocol<const Owed extends ReadonlyArray<WalkObligation>>(
owed: Owed,
): Protocol<Owed[number]>Define a protocol from its obligations (obligation(...)), so discharge
accepts only those: another obligation is a type error, and throws when it
is passed anyway.