import { Blank } from '../../primitive/Blank'; /** * * Type to remove whitespace from the left side of a string * * 문자열의 왼쪽 공백을 제거하는 타입 * * @param S String / 문자열 * * @returns String with left whitespace removed / 왼쪽 공백이 제거된 문자열 * * @example * type cases = [ * Expect, 'Hello World '>>, * Expect, 'foo bar '>>, * Expect, ''>>, * ] * * @link https://www.utilscript.site/docs/usage-string/trim-left * */ export type TrimLeft = S extends `${Blank}${infer Rest}` ? TrimLeft : S;