From f4bf59367d1df09d32e1d5634d25c8c4f005ab4a Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 5 May 2022 19:48:17 +0200 Subject: [PATCH] fix: use named export for `events` --- src/runtime/node/events/index.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/runtime/node/events/index.ts b/src/runtime/node/events/index.ts index 8699d625..414066c0 100644 --- a/src/runtime/node/events/index.ts +++ b/src/runtime/node/events/index.ts @@ -1,8 +1,11 @@ // https://nodejs.org/api/events.html -import type _EventEmitter from 'node:events' +import type events from 'node:events' // @ts-ignore -import { EventEmitter } from './_events' +import { EventEmitter as _EventEmitter } from './_events' -// @ts-ignore -export default <_EventEmitter> EventEmitter +export const EventEmitter = _EventEmitter as any as typeof events.EventEmitter + +export default { + EventEmitter +}