Interfacecorev0.4.1
EffectGate
A gate that carries a side effect, split so the effect fires only once the gate is the one that let the request through. check peeks and refuses, while commit applies the effect after the whole gate set passes. Cooldown is the catalog gate that returns one. Build one with defineEffectGate.
See also:defineEffectGate
interface EffectGate<
Ctx extends GateContextBase = GateContextBase,
Name extends string = string
> extends Gate<Ctx, Name>Ctx
The context both check and commit require. A field missing from it fails to compile.
Ctx extends GateContextBase = GateContextBaseName
The gate's literal name, shown when a mismatch error names the gate.
name
The gate's name, surfaced in a mismatch error and joined by the combinators.
readonly name: NameInherited from:Gate