Skip to content

Commit

Permalink
fix: add explicit type
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Jan 3, 2024
1 parent 4ff8250 commit 646582a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function trainCase(string: string, options?: { keepSpecialCharacters?: bo
* @example
* adaCase('$catDog', { keepSpecialCharacters: true }) === '$Cat_Dog'
*/
export function adaCase(string: string, options?: { keepSpecialCharacters?: boolean; keep?: string[] }) {
export function adaCase(string: string, options?: { keepSpecialCharacters?: boolean; keep?: string[] }): string {
return splitAndPrefix(string, { ...options, prefix: '_' })
.map((part) => capitaliseWord(part))
.join('')
Expand Down

0 comments on commit 646582a

Please sign in to comment.