Skip to content

Commit

Permalink
fix dom type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MoustaphaDev committed Dec 25, 2024
1 parent 320fe96 commit 141c331
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lucide-astro/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @param {string} string
* @returns {string} A kebabized string
*/
export const toKebabCase = (string: string) =>
export const toKebabCase = (string: string): string =>
string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();

/**
Expand All @@ -15,7 +15,7 @@ export const toKebabCase = (string: string) =>
*/
export const mergeClasses = <ClassType = string | undefined | null>(
...classes: ClassType[]
) =>
): string =>
classes
.filter((className, index, array) => {
return (
Expand Down
1 change: 1 addition & 0 deletions packages/lucide-astro/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"jsx": "preserve",
"lib": [
"ESNext",
"DOM.Iterable"
],
"types": [
"@testing-library/jest-dom",
Expand Down

0 comments on commit 141c331

Please sign in to comment.