blob: 581b248b8a57c67c6eaa38702f8fe84bbd366671 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// eslint-disable-next-line no-restricted-imports
import {EventEmitter as NodeEventEmitter} from 'node:events';
import {expectAssignable} from 'tsd';
import type {CommonEventEmitter, EventEmitter, EventType} from 'puppeteer';
declare const emitter: EventEmitter<Record<EventType, any>>;
{
{
expectAssignable<CommonEventEmitter<Record<EventType, any>>>(
new NodeEventEmitter()
);
}
{
expectAssignable<CommonEventEmitter<Record<EventType, any>>>(emitter);
}
}
|