Typegatewayv0.1.4GateContextWhat a gateway gate's check receives, tagged by ctx.kind. Narrow on kind before reading interaction or payload. See also:InteractionGateContext, EventGateContexttype GateContext = InteractionGateContext | EventGateContext;ExamplesCopy// a gate that handles either arm narrows on ctx.kind const Either = defineGate('either', (ctx: GateContext) => { if (ctx.kind === 'interaction') void ctx.interaction; else void ctx.payload; });