Skip to content

Commit

Permalink
Fix the TypeScript type for the launchOptions option
Browse files Browse the repository at this point in the history
Fixes #86
  • Loading branch information
sindresorhus committed Jun 16, 2021
1 parent 93947a5 commit 8b1a77a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
import {LaunchOptions, Page, Browser, EvaluateFn, Protocol} from 'puppeteer';
import {
LaunchOptions as PuppeteerLaunchOptions,
BrowserLaunchArgumentOptions,
BrowserConnectOptions,
Page,
Browser,
EvaluateFn,
Protocol,
Product
} from 'puppeteer';

export type LaunchOptions = PuppeteerLaunchOptions &
BrowserLaunchArgumentOptions &
BrowserConnectOptions & {
product?: Product;
extraPrefsFirefox?: Record<string, unknown>;
};

export interface Authentication {
readonly username: string;
Expand Down

0 comments on commit 8b1a77a

Please sign in to comment.