diff --git a/src/lib/string/string.ts b/src/lib/string/string.ts index 11dd946..1f9c147 100644 --- a/src/lib/string/string.ts +++ b/src/lib/string/string.ts @@ -80,7 +80,7 @@ export const toCamelCase = (str: string): string => { * const upperCaseString = await toUpperCase(inputString); * console.log(upperCaseString); // "Hello" */ -export const toUpperCase = async (str: string): Promise => { +export const toUpperCase = (str: string): string => { return str.charAt(0).toUpperCase() + str.slice(1) } @@ -95,6 +95,6 @@ export const toUpperCase = async (str: string): Promise => { * const lowerCaseString = await toLowerCase(inputString); * console.log(lowerCaseString); // "world" */ -export const toLowerCase = async (str: string): Promise => { +export const toLowerCase = (str: string): string => { return str.charAt(0).toLowerCase() + str.slice(1) }