Skip to content

Commit

Permalink
refactor: Fix type warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin committed Nov 29, 2020
1 parent e5cf66e commit 146e933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
* Lib helper functions for Vue app.
*/

export function stripLeadingSlash(value) {
export function stripLeadingSlash(value: string) {
return value.replace(/^\/+/, "");
}

export function slugify(...values) {
export function slugify(...values: string[]) {
const value = values.join("-");

return value
Expand Down

0 comments on commit 146e933

Please sign in to comment.