From af3fe3d97802c748306cbe9e637f10d6568936dc Mon Sep 17 00:00:00 2001 From: "Yuichiro Tachibana (Tsuchiya)" Date: Thu, 4 Apr 2024 17:11:30 +0900 Subject: [PATCH] Set `moduleResolution` as `Node` because it's necessary to run correct type checking at build time (#850) * Set `moduleResolution` as `Node` because it's necessary to run correct type checking at build time * fix typing in nodejs-worker.ts --- packages/desktop/src/nodejs-worker.ts | 2 +- packages/desktop/tsconfig.json | 2 +- packages/mountable/tsconfig.json | 2 +- packages/sharing/tsconfig.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/desktop/src/nodejs-worker.ts b/packages/desktop/src/nodejs-worker.ts index 8347b8ff3..207a7470f 100644 --- a/packages/desktop/src/nodejs-worker.ts +++ b/packages/desktop/src/nodejs-worker.ts @@ -10,7 +10,7 @@ export class NodeJsWorkerMock { constructor() { this.initializePromise = window.nodeJsWorkerAPI.initialize(); - window.nodeJsWorkerAPI.onMessage((data) => { + window.nodeJsWorkerAPI.onMessage((data: unknown) => { this.onmessage && this.onmessage({ data }); }); } diff --git a/packages/desktop/tsconfig.json b/packages/desktop/tsconfig.json index 92e178534..a7b325bd1 100644 --- a/packages/desktop/tsconfig.json +++ b/packages/desktop/tsconfig.json @@ -10,7 +10,7 @@ "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, "module": "esnext", - "moduleResolution": "Bundler", + "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, diff --git a/packages/mountable/tsconfig.json b/packages/mountable/tsconfig.json index e981996df..91d7e9089 100644 --- a/packages/mountable/tsconfig.json +++ b/packages/mountable/tsconfig.json @@ -14,7 +14,7 @@ "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, "module": "esnext", - "moduleResolution": "Bundler", + "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, diff --git a/packages/sharing/tsconfig.json b/packages/sharing/tsconfig.json index 92e178534..a7b325bd1 100644 --- a/packages/sharing/tsconfig.json +++ b/packages/sharing/tsconfig.json @@ -10,7 +10,7 @@ "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, "module": "esnext", - "moduleResolution": "Bundler", + "moduleResolution": "Node", "resolveJsonModule": true, "isolatedModules": true, "noEmit": true,