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

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

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

Type Parameters

T extends PropertyKey[]
S extends PropertyKey[]
optional
Acc extends PropertyKey[] = []
definition: (T extends [infer L extends PropertyKey, ...infer R extends PropertyKey[]] ? TSetIncludes<S, L> extends true ? TSetIntersect<R, S, [...Acc, L]> : TSetIntersect<R, S, [...Acc]> : Acc)