puppeteer/test-d/CommonEventEmitter.test-d.ts

17 lines
387 B
TypeScript
Raw Normal View History

// 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);
}
}