diff --git a/src/string.ts b/src/string.ts index 726c497..886f057 100644 --- a/src/string.ts +++ b/src/string.ts @@ -1,9 +1,9 @@ export function capitalize(value: T): Capitalize { - return value.at(0)!.toUpperCase() + value.slice(1) as Capitalize; + return (value.at(0)!.toUpperCase() + value.slice(1)) as Capitalize; } export function uncapitalize(value: T): Uncapitalize { - return value.at(0)!.toLowerCase() + value.slice(1) as Uncapitalize; + return (value.at(0)!.toLowerCase() + value.slice(1)) as Uncapitalize; } export type ConcatString = T extends [infer F extends string, ...infer R extends string[]] ? `${F}${ConcatString}` : '';