diff --git a/test-d/CommonEventEmitter.test-d.ts b/test-d/CommonEventEmitter.test-d.ts new file mode 100644 index 00000000000..cea44566054 --- /dev/null +++ b/test-d/CommonEventEmitter.test-d.ts @@ -0,0 +1,16 @@ +// 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(new NodeEventEmitter()); + } + { + expectAssignable(emitter); + } +}