import { Tuple } from '../../primitive'; import { If } from '../If'; import { IsNever } from '../IsNever'; import { Length } from '../../array/Length'; /** * * Type to check if a type is a tuple * * 타입이 튜플인지 확인하는 타입 * * @param T Type to check / 타입 * * @returns Whether the type is a tuple / 타입이 튜플인지 여부 * * @example * type cases = [ * Expect, true>>, * Expect, true>>, * Expect, true>>, * Expect, false>>, * Expect, false>>, * Expect, false>>, * ] * * @link https://www.utilscript.site/docs/usage-commonness/is-tuple * */ export type IsTuple = If, false, T extends Tuple ? (number extends Length ? false : true) : false>;