puppeteer/test-d/puppeteer.test-d.ts
Alex Rudenko 10a114d36f
fix: change injected.ts imports (#8987)
* fix: change injected.ts imports

Not sure why api-extractor generates broken .d.ts
files if the start import is used for Poller and TextContext.

* test: use generated types.d.ts in tsd
2022-09-20 10:28:31 +02:00

16 lines
438 B
TypeScript

import {expectType} from 'tsd';
import {
connect,
createBrowserFetcher,
defaultArgs,
executablePath,
launch,
default as puppeteer,
} from '..';
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);