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

x/typebox/src/type/sets/set.ts>TSetDistinct

Json Schema Type Builder with Static Type Resolution for TypeScript
Go to Latest
type alias TSetDistinct
import { type TSetDistinct } from "https://deno.land/x/typebox@0.32.23/src/type/sets/set.ts";

Type Parameters

T extends PropertyKey[]
optional
Acc extends PropertyKey[] = []
definition: T extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? TSetIncludes<Acc, L> extends false ? TSetDistinct<R, [...Acc, L]> : TSetDistinct<R, [...Acc]> : Acc