type MessageType<C>
Utility type to extract the message type from a Channel.
Definition
type MessageType<C extends
Channel.Read
<any>
|
Channel.Write
<any>> = C extends
Channel.Read
<infer T> ? T : C extends
Channel.Write
<infer T> ? T : never;