Interfaceseedcordv0.13.0
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. checkcheck peeks and refuses, commitcommit applies the effect after the whole gate set passes. CooldownCooldown is the catalog gate that returns one. Build one with defineEffectGatedefineEffectGate.
See also:defineEffectGate
interface EffectGate<
Ctx extends GateContextBase = GateContext,
Name extends string = string
> extends Gate<Ctx, Name>interface EffectGate<
Ctx extends GateContextBase = GateContext,
Name extends string = string
> extends Gate<Ctx, Name>Properties
Methods
Ctx
The context the gate requires, so reading a field absent on a handler's context is a compile error.
Ctx extends GateContextBase = GateContextCtx extends GateContextBase = GateContextName
The gate's name captured as a literal, so a mismatch error can name the gate.
check()
Reads the context and refuses by throwing a Notice or a Silence, or passes by resolving.