Skip to content

Commit

Permalink
chore: up typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
qq15725 committed Dec 21, 2024
1 parent 0c61f4d commit bd66a5e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
}
},
"files": [
"worker.d.ts",
"dist"
"dist",
"worker.d.ts"
],
"scripts": {
"dev": "vite",
Expand Down Expand Up @@ -83,7 +83,7 @@
"lint-staged": "^15.2.10",
"puppeteer": "^23.7.0",
"simple-git-hooks": "^2.11.1",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"unbuild": "^2.0.0",
"vite": "^5.4.10",
"vitest": "^2.1.4"
Expand Down
11 changes: 9 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/converts/dom-to-blob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export async function domToBlob(node: any, options?: any): Promise<Blob> {
const blob = await canvasToBlob(canvas, type, quality)
if (['image/png', 'image/jpeg'].includes(type) && dpi) {
const arrayBuffer = await blobToArrayBuffer(blob.slice(0, 33))
let uint8Array = new Uint8Array(arrayBuffer)
let uint8Array = new Uint8Array<any>(arrayBuffer)

Check failure on line 19 in src/converts/dom-to-blob.ts

View workflow job for this annotation

GitHub Actions / Lint: node-lts, ubuntu-latest

Expected 0 type arguments, but got 1.

Check failure on line 19 in src/converts/dom-to-blob.ts

View workflow job for this annotation

GitHub Actions / Build&Test: node-lts, ubuntu-latest

Expected 0 type arguments, but got 1.
if (type === 'image/png') {
uint8Array = changePngDpi(uint8Array, dpi)
}
Expand Down

0 comments on commit bd66a5e

Please sign in to comment.