From 2c60c83f821d0b2fbaf167379cadf67374f2ad74 Mon Sep 17 00:00:00 2001 From: Barrior Date: Thu, 21 Mar 2024 17:01:28 +0800 Subject: [PATCH] chore: fix type error --- scripts/webpack.config.js | 1 - src/types/global.d.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/webpack.config.js b/scripts/webpack.config.js index c6d9ec1..57f1049 100644 --- a/scripts/webpack.config.js +++ b/scripts/webpack.config.js @@ -53,7 +53,6 @@ module.exports = { loader: 'ts-loader', options: { onlyCompileBundledFiles: true, - transpileOnly: true, }, }, ], diff --git a/src/types/global.d.ts b/src/types/global.d.ts index e2f04fb..b1e564d 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -15,4 +15,4 @@ interface Window { /** * 排除没有 width 和 height 属性的元素 */ -type ICanvasImageSource = Exclude +type ICanvasImageSource = Exclude