Module

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

Json Schema Type Builder with Static Type Resolution for TypeScript
Latest
type alias TSetComplement
import { type TSetComplement } from "https://dotland.deno.dev/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 ? TSetComplement<R, S, [...Acc]> : TSetComplement<R, S, [...Acc, L]> : Acc)