import { Equal } from '../../commonness/Equal'; import { If } from '../../commonness/If'; /** * * Check if a string starts with a specific substring * * 특정 문자열로 시작하는지 확인하는 타입 * * @param T The original string type / 원본 문자열 * * @param U The substring to check / 확인할 문자열 * * @example * type cases = [ * Expect, false>>, * Expect, true>>, * Expect, true>>, * Expect, false>>, * ]; * * @link https://www.utilscript.site/docs/usage-string/starts-with * */ export type StartsWith = If, boolean, If, false, T extends `${U}${string}` ? true : false>>;