import { Length as ArrayLength } from '../../array/Length'; import { Push } from '../../array/Push'; import { Tuple } from '../../primitive/Tuple'; /** * * Type to return the length of a string * * 문자열의 길이를 반환하는 타입 * * @param S String / 문자열 * * @returns Length of string / 문자열의 길이 * * @example * type cases = [ * Expect, 3>>, * Expect, 0>>, * ] * * @link https://www.utilscript.site/docs/usage-string/length * */ export type Length = S extends `${string}${infer Rest}` ? Length> : ArrayLength;