puppeteer/test-d/CommonEventEmitter.test-d.ts
2023-09-13 15:47:55 +02:00

19 lines
482 B
TypeScript

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