type alias TSetDistinctimport { type TSetDistinct } from "https://dotland.deno.dev/x/typebox@0.33.22/src/type/sets/set.ts"; Type ParametersT extends PropertyKey[]optionalAcc 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