puppeteer/test-d/CommonEventEmitter.test-d.ts
2023-07-03 14:38:33 +00:00

17 lines
387 B
TypeScript

// eslint-disable-next-line no-restricted-imports
import {EventEmitter as NodeEventEmitter} from 'node:events';
import {CommonEventEmitter, EventEmitter} from 'puppeteer';
import {expectAssignable} from 'tsd';
declare const emitter: EventEmitter;
{
{
expectAssignable<CommonEventEmitter>(new NodeEventEmitter());
}
{
expectAssignable<CommonEventEmitter>(emitter);
}
}