Skip to content

Commit

Permalink
fix: Fix incompatibility with @types/node release. (#646)
Browse files Browse the repository at this point in the history
This change,
DefinitelyTyped/DefinitelyTyped#69997, to the
`@types/node` package made typings for the emitter stricter and break
the builds. Functionally the code is the same.
  • Loading branch information
kinyoklion authored Oct 31, 2024
1 parent 67b8cb8 commit 2a9a0de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/server-node/src/Emits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ export function Emits<TBase extends Eventable>(Base: TBase) {
return this.emitter.getMaxListeners();
}

listeners(eventName: string | symbol): Function[] {
listeners(eventName: string | symbol): Array<() => void> {
return this.emitter.listeners(eventName);
}

rawListeners(eventName: string | symbol): Function[] {
rawListeners(eventName: string | symbol): Array<() => void> {
return this.emitter.rawListeners(eventName);
}

Expand Down

0 comments on commit 2a9a0de

Please sign in to comment.