/** * * Type to return the first character of a string * * 문자열의 첫 번째 문자를 반환하는 타입 * * @param S String / 문자열 * * @returns First character of string / 문자열의 첫 번째 문자 * * @example * type cases = [ * Expect, 'a'>>, * Expect, '1'>>, * Expect, '4'>>, * Expect, never>>, * ] * * @link https://www.utilscript.site/docs/usage-string/first * */ export type First = S extends `${infer First}${string}` ? First : never;