mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
24 lines
507 B
TypeScript
24 lines
507 B
TypeScript
// eslint-disable-next-line no-restricted-imports
|
|
import {EventEmitter as NodeEventEmitter} from 'node:events';
|
|
|
|
import {expectAssignable} from 'tsd';
|
|
|
|
import {
|
|
type CommonEventEmitter,
|
|
type EventEmitter,
|
|
type EventType,
|
|
} from 'puppeteer';
|
|
|
|
declare const emitter: EventEmitter<Record<EventType, any>>;
|
|
|
|
{
|
|
{
|
|
expectAssignable<CommonEventEmitter<Record<EventType, any>>>(
|
|
new NodeEventEmitter()
|
|
);
|
|
}
|
|
{
|
|
expectAssignable<CommonEventEmitter<Record<EventType, any>>>(emitter);
|
|
}
|
|
}
|