-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
types(node): type
EventEmitter
in dist
- Loading branch information
Showing
1 changed file
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
// https://nodejs.org/api/events.html | ||
import type events from "node:events"; | ||
import type nodeEvents from "node:events"; | ||
|
||
// @ts-ignore | ||
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 const EventEmitter: typeof nodeEvents.EventEmitter = | ||
_EventEmitter as any as typeof nodeEvents.EventEmitter; | ||
|
||
export default <typeof events>{ | ||
export const once: typeof nodeEvents.once = | ||
_once as any as typeof nodeEvents.once; | ||
|
||
export default <typeof nodeEvents>{ | ||
EventEmitter, | ||
once, | ||
}; |