Skip to content

Commit 266207a

Browse files
authored
chore: add ts-check to js files (#1285)
1 parent ed741e8 commit 266207a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/__mocks__/electron.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-ignore
12
window.Notification = function (title) {
23
this.title = title;
34

@@ -6,6 +7,7 @@ window.Notification = function (title) {
67
};
78
};
89

10+
// @ts-ignore
911
window.Audio = class Audio {
1012
constructor(path) {
1113
this.path = path;
@@ -14,6 +16,7 @@ window.Audio = class Audio {
1416
play() {}
1517
};
1618

19+
// @ts-ignore
1720
window.localStorage = {
1821
store: {},
1922
getItem: function (key) {

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"allowSyntheticDefaultImports": true,
1313
"esModuleInterop": true,
1414
"types": ["jest"],
15-
"skipLibCheck": true
15+
"skipLibCheck": true,
16+
"checkJs": true
1617
},
1718
"include": [
1819
"src/**/*.js",

0 commit comments

Comments
 (0)