ReplySpec<EM extends EventMapBase>
typeWhich reply events end a call, and therefore what it resolves to.
Given as
[channel] or [channel, type] or [channel, [type, type]]. The named types are
**terminal**: the first one to arrive settles the call. Every other correlated event on that
channel is progress.
Naming a channel alone makes every event on it terminal, which suits a responder with a single
kind of answer. Naming types is what lets a responder stream: ["rpc", ["answer", "error"]]
ends on either, and anything else — progress, partial, log — flows to the consumer.Definition
type
type ReplySpec<EM extends EventMapBase> = readonly [channel] | readonly [channel, type] | readonly [channel, types]readonly [channel] | readonly [channel, type] | readonly [channel, types]
Type parameters
| Name | Type | Description |
|---|---|---|
EM | extends EventMapBase |