Skip to content

Commit 1802c41

Browse files
committed
fix: typescript fixes Refs: KEH-281
1 parent 2e486e5 commit 1802c41

5 files changed

Lines changed: 14 additions & 5 deletions

File tree

lib/i18n.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { createInstance } from 'i18next';
1+
import { createInstance, type i18n as I18nextInstance } from 'i18next';
22

3-
const i18n = createInstance();
3+
const i18n: I18nextInstance = createInstance();
44

55
i18n.init({
66
fallbackLng: 'fi',

tsconfig.app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
"moduleDetection": "force",
1414
"noEmit": true,
1515
"jsx": "react",
16-
"types": ["vitest/globals"],
1716
/* Linting */
1817
"strict": true,
1918
"noUnusedLocals": true,
2019
"noUnusedParameters": true,
2120
"noFallthroughCasesInSwitch": true,
2221
"noUncheckedSideEffectImports": true
2322
},
24-
"include": ["src", "lib"]
23+
"include": ["src", "lib"],
24+
"exclude": ["lib/__tests__"]
2525
}

tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": "./tsconfig.app.json",
33
"include": ["lib"],
4+
"exclude": ["lib/__tests__"],
45
"compilerOptions": {
56
"declaration": true,
67
"declarationDir": "./dist",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"references": [
44
{ "path": "./tsconfig.app.json" },
55
{ "path": "./tsconfig.build.json" },
6-
{ "path": "./tsconfig.node.json" }
6+
{ "path": "./tsconfig.node.json" },
7+
{ "path": "./tsconfig.test.json" }
78
]
89
}

tsconfig.test.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.app.json",
3+
"compilerOptions": {
4+
"types": ["vitest/globals"]
5+
},
6+
"include": ["lib/__tests__"]
7+
}

0 commit comments

Comments
 (0)