diff --git a/packages/core/package.json b/packages/core/package.json index 8088360..d34ddd8 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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" } } diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 98ab2d9..2977d65 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -24,11 +24,6 @@ declare module 'puppeteer-core/lib/types' { encoding?: 'binary' } - interface Shooter { - screenshot(options?: Base64ScreenshotOptions): Promise - screenshot(options?: BinaryScreenshotOptions): Promise - } - interface Page { screenshot(options?: Base64ScreenshotOptions): Promise screenshot(options?: BinaryScreenshotOptions): Promise