Skip to content

Commit

Permalink
chore: fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Barrior committed Mar 21, 2024
1 parent a96b40d commit 2c60c83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion scripts/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ module.exports = {
loader: 'ts-loader',
options: {
onlyCompileBundledFiles: true,
transpileOnly: true,
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ interface Window {
/**
* 排除没有 width 和 height 属性的元素
*/
type ICanvasImageSource = Exclude<CanvasImageSource, VideoFrame | SVGImageElement>
type ICanvasImageSource = Exclude<CanvasImageSource, SVGImageElement>

0 comments on commit 2c60c83

Please sign in to comment.