import { type Channel } from "https://deno.land/x/rimbu@1.2.0/channel/custom/index.ts";
const { MessageType } = Channel;
Utility type to extract the message type from a Channel.
Type Parameters
C extends Channel.Read<any> | Channel.Write<any>
definition: C extends Channel.Read<infer T> ? T : C extends Channel.Write<infer T> ? T : never