From afe6bd79389b640f690fe147a7508dbe20662682 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Wed, 15 May 2024 12:20:06 -0700 Subject: [PATCH] fix(types): include .cjs --- packages/xsnap/package.json | 2 +- packages/xsnap/src/avaHandler.cjs | 3 --- packages/xsnap/tsconfig.json | 9 ++++----- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/packages/xsnap/package.json b/packages/xsnap/package.json index 0b037c2e53b5..ab4b4bb2d2db 100644 --- a/packages/xsnap/package.json +++ b/packages/xsnap/package.json @@ -74,6 +74,6 @@ "workerThreads": false }, "typeCoverage": { - "atLeast": 94.45 + "atLeast": 94.04 } } diff --git a/packages/xsnap/src/avaHandler.cjs b/packages/xsnap/src/avaHandler.cjs index 5dc8099dfcd3..8aaba6603688 100644 --- a/packages/xsnap/src/avaHandler.cjs +++ b/packages/xsnap/src/avaHandler.cjs @@ -12,7 +12,6 @@ HandledPromise is defined by eventual send shim. /// /// -// @ts-expect-error cannot redeclare encoder const encoder = new TextEncoder(); const decoder = new TextDecoder(); @@ -33,7 +32,6 @@ function send(item) { */ const bundleSource = async (startFilename, ...args) => { const msg = await send({ bundleSource: [startFilename, ...args] }); - // @ts-expect-error send() returns void return JSON.parse(decoder.decode(msg)); }; @@ -87,7 +85,6 @@ function handler(rawMessage) { __filename, console, assert, - // @ts-expect-error HandledPromise, URL: class URLStub { constructor(url, base) { diff --git a/packages/xsnap/tsconfig.json b/packages/xsnap/tsconfig.json index 88ee89a10d69..33a8212f1728 100644 --- a/packages/xsnap/tsconfig.json +++ b/packages/xsnap/tsconfig.json @@ -6,10 +6,9 @@ }, "include": [ "*.js", - "lib/**/*.js", - "src/**/*.d.ts", - "src/**/*.js", - "test/**/*.js", - "tools/**/*.js", + "lib", + "src", + "test", + "tools", ], }