Skip to content

Commit

Permalink
🐛 fix: type errors (#1037)
Browse files Browse the repository at this point in the history
* fix: adjust interface path and add missing types

* chore: add changeset
  • Loading branch information
hirsch88 authored Sep 15, 2023
1 parent 9e4619b commit 2b89d85
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .build/interfaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ async function main(){

async function adjustInterfacesReference(files){
try {
replace.sync({
files: files,
from: `/// <reference path="../../../../../src/interfaces.d.ts" />`,
to: `/// <reference path="../../../../interfaces.d.ts" />`,
})
replace.sync({
files: files,
from: `/// <reference path="../../../../src/interfaces.d.ts" />`,
Expand Down
5 changes: 5 additions & 0 deletions .changeset/slow-apples-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@baloise/design-system-components': patch
---

fix types errors
17 changes: 8 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
"@types/lodash.padstart": "~4.6.6",
"@types/lodash.round": "~4.0.6",
"@types/lodash.upperfirst": "~4.3.6",
"@types/luxon": "^3.3.0",
"@types/node": "~18.16.0",
"@types/react": "~17.0.2",
"@types/react-dom": "~17.0.2",
Expand Down
1 change: 1 addition & 0 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"lottie-colorify": "0.8.0",
"lottie-web": "5.8.1",
"luxon": "^3.3.0",
"@types/luxon": "^3.3.0",
"tslib": "^2.1.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/interfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ export interface I18n<T> {
fi: T
}

export type I18nKeys = keyof I18n<T>
export type I18nKeys = keyof I18n<any>

0 comments on commit 2b89d85

Please sign in to comment.