From e7311b779b5b5fc225896393958fb6b5f0c5c488 Mon Sep 17 00:00:00 2001 From: Afonso Jorge Ramos Date: Thu, 20 Jun 2024 01:53:32 +0100 Subject: [PATCH] chore: add ts-check to js files --- src/__mocks__/electron.js | 3 +++ tsconfig.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/__mocks__/electron.js b/src/__mocks__/electron.js index 7d4f4f34e..3362dc13e 100644 --- a/src/__mocks__/electron.js +++ b/src/__mocks__/electron.js @@ -1,3 +1,4 @@ +// @ts-ignore window.Notification = function (title) { this.title = title; @@ -6,6 +7,7 @@ window.Notification = function (title) { }; }; +// @ts-ignore window.Audio = class Audio { constructor(path) { this.path = path; @@ -14,6 +16,7 @@ window.Audio = class Audio { play() {} }; +// @ts-ignore window.localStorage = { store: {}, getItem: function (key) { diff --git a/tsconfig.json b/tsconfig.json index 99a01a632..4ded5d19d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,7 +12,8 @@ "allowSyntheticDefaultImports": true, "esModuleInterop": true, "types": ["jest"], - "skipLibCheck": true + "skipLibCheck": true, + "checkJs": true }, "include": [ "src/**/*.js",