Type Alias TSetIncludes<T, S>

TSetIncludes<T, S>: T extends [infer L extends PropertyKey, ...(infer R extends PropertyKey[])]
    ? S extends L
        ? true
        : TSetIncludes<R, S>
    : false

Type Parameters

  • T extends PropertyKey[]
  • S extends PropertyKey