Skip to main content
Module

x/rimbu/channel/mod.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.0.2/channel/mod.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