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

x/typebox/src/typebox.ts>UnionLast

Json Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
type alias UnionLast
import { type UnionLast } from "https://deno.land/x/typebox@0.31.20/src/typebox.ts";
definition: UnionToIntersect<U extends unknown ? (x: U) => 0 : never> extends (x: infer L) => 0 ? L : never