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