Skip to content

Commit

Permalink
add return type
Browse files Browse the repository at this point in the history
  • Loading branch information
timreichen committed Aug 6, 2024
1 parent efe1ff9 commit 6bcd670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion text/slugify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ function replaceChars(string: string) {
.join("");
}

export function slugify(input: string) {
export function slugify(input: string): string {
return replaceChars(input)
.trim()
.toLowerCase()
Expand Down

0 comments on commit 6bcd670

Please sign in to comment.