Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/scale/codecs/mod.ts>InputTaggedUnion

A TypeScript reference implementation of SCALE transcoding
Go to Latest
type alias InputTaggedUnion
import { type InputTaggedUnion } from "https://deno.land/x/scale@v0.13.0/codecs/mod.ts";

Type Parameters

K extends keyof any
M extends Record<number, AnyVariant>
definition: [I in keyof M]: Expand<Readonly<Record<K, Extract<M[I], AnyVariant>["tag"]>> & Input<Extract<M[I], AnyVariant>["codec"]>>[keyof M & number]