Skip to content

Commit

Permalink
🐛 Fix typings for puppeteerArgs (#163)
Browse files Browse the repository at this point in the history
Fixes #162
  • Loading branch information
favna committed Feb 15, 2022
1 parent 9bfa9dd commit e206ee6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/types.ts
@@ -1,5 +1,5 @@
import { PuppeteerLifeCycleEvent, Page, LaunchOptions } from "puppeteer";
import { Screenshot } from "./models/Screenshot";
import type { PuppeteerLifeCycleEvent, Page, PuppeteerNodeLaunchOptions } from "puppeteer";
import type { Screenshot } from "./models/Screenshot";

export type Content = Array<{ output: string; selector?: string }> | object;
export type Encoding = "base64" | "binary";
Expand All @@ -17,7 +17,7 @@ export interface ScreenshotParams {
}

export interface Options extends ScreenshotParams {
puppeteerArgs?: LaunchOptions;
puppeteerArgs?: PuppeteerNodeLaunchOptions;
waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[];
beforeScreenshot?: (page: Page) => void;
}
Expand Down

0 comments on commit e206ee6

Please sign in to comment.