import { IsAlphabet } from '../../commonness/IsAlphabet'; /** * * Smallize the first letter of a string * * 문자열의 첫 번째 문자를 소문자로 변환하는 타입 * * @param S String to convert / 소문자로 변환할 문자열 * * @param R Result string / 결과 문자열 * * @example * type cases = [ * Expect, 'fOOBAR'>>, * Expect, 'fooBar'>>, * Expect, 'foo_bar'>>, * Expect, 'foo-bar'>>, * Expect, 'fooBar'>>, * Expect, 'foobar'>>, * ]; * * @link https://www.utilscript.site/docs/usage-string/smallize * */ export type Smallize = S extends `${infer First}${infer Rest}` ? IsAlphabet extends true ? Flag extends true ? Smallize}`> : Smallize : Smallize : R;