Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/channel/main/index.ts>Channel.MessageType

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias Channel.MessageType
import { type Channel } from "https://deno.land/x/rimbu@1.2.0/channel/main/index.ts";
const { MessageType } = Channel;

Utility type to extract the message type from a Channel.

definition: C extends Channel.Read<infer T> ? T : C extends Channel.Write<infer T> ? T : never