Skip to content

Commit

Permalink
fix: use named export for events
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 5, 2022
1 parent 45d859f commit f4bf593
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/runtime/node/events/index.ts
Original file line number Diff line number Diff line change
@@ -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 <typeof events> {
EventEmitter
}

0 comments on commit f4bf593

Please sign in to comment.