Skip to content

Commit

Permalink
fix(events): export once function (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
officialpiyush authored Jan 25, 2023
1 parent 6447f7b commit 1108d98
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/runtime/node/events/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
import type events from "node:events";

// @ts-ignore
import { EventEmitter as _EventEmitter } from "./_events";
import { EventEmitter as _EventEmitter, once as _once } from "./_events";

export const EventEmitter = _EventEmitter as any as typeof events.EventEmitter;
export const once = _once as any as typeof events.once;

export default <typeof events>{
export default <typeof events> {
EventEmitter,
};
once,
}

0 comments on commit 1108d98

Please sign in to comment.