import { Equal } from '../../commonness/Equal'; import { If } from '../../commonness/If'; import { Extends } from '../../commonness/Extends'; import { Tuple } from '../../primitive/Tuple'; /** * * Check if an array includes a value * * 튜플에 값이 포함되어 있는지 확인하는 타입 * * @param T Tuple / 튜플 * * @param U Value to check / 확인할 값 * * @returns Whether the array includes the value / 튜플에 값이 포함되어 있는지 여부 * * @example * type cases = [ * Expect, true>>, * Expect, false>>, * Expect, true>>, * Expect, false>>, * ] * * @link https://www.utilscript.site/docs/usage-array/includes * */ export type Includes = If, true, false>; }, { [key: number]: false; }>, false, true>;