puppeteer/test-d/puppeteer.test-d.ts

16 lines
469 B
TypeScript
Raw Normal View History

2022-06-27 08:57:31 +00:00
import {expectType} from 'tsd';
import {
connect,
createBrowserFetcher,
defaultArgs,
executablePath,
launch,
default as puppeteer,
} from '../lib/esm/puppeteer/puppeteer.js';
expectType<typeof launch>(puppeteer.launch);
expectType<typeof connect>(puppeteer.connect);
expectType<typeof createBrowserFetcher>(puppeteer.createBrowserFetcher);
expectType<typeof defaultArgs>(puppeteer.defaultArgs);
expectType<typeof executablePath>(puppeteer.executablePath);