Skip to content

Commit

Permalink
feat(core): update puppeteer-core (#35)
Browse files Browse the repository at this point in the history
Co-authored-by: Shigma <[email protected]>
  • Loading branch information
idranme and shigma authored Feb 24, 2024
1 parent 318f9a7 commit 03228ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"undios-proxy-agent": "^0.1.4"
},
"dependencies": {
"puppeteer-core": "^22.2.0",
"@koishijs/canvas": "^0.2.0",
"puppeteer-core": "^19.11.1",
"puppeteer-finder": "^1.1.0"
}
}
5 changes: 0 additions & 5 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ declare module 'puppeteer-core/lib/types' {
encoding?: 'binary'
}

interface Shooter {
screenshot(options?: Base64ScreenshotOptions): Promise<string>
screenshot(options?: BinaryScreenshotOptions): Promise<Buffer>
}

interface Page {
screenshot(options?: Base64ScreenshotOptions): Promise<string>
screenshot(options?: BinaryScreenshotOptions): Promise<Buffer>
Expand Down

0 comments on commit 03228ae

Please sign in to comment.