/** * * Check if a string ends with a specific substring * * 특정 문자열로 끝나는지 확인하는 타입 * * @param T The original string type / 원본 문자열 * * @param U The substring to check / 확인할 문자열 * * @returns true if the string ends with the substring, false otherwise / 문자열이 특정 문자열로 끝나면 true, 아니면 false * * @example * type cases = [ * Expect, true>>, * Expect, true>>, * Expect, false>>, * Expect, false>>, * ]; * * @link https://www.utilscript.site/docs/usage-string/ends-with * */ export type EndsWith = T extends `${string}${U}` ? true : false;