From ece4051ae3c96b7f2a3317d72e111bc77ee3182c Mon Sep 17 00:00:00 2001 From: James Prevett Date: Sat, 5 Oct 2024 23:24:19 -0500 Subject: [PATCH] Formatting --- src/string.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}` : '';