From 2a9a0de44c98ebb80dc8391f109e9bbf5c83540b Mon Sep 17 00:00:00 2001 From: Ryan Lamb <4955475+kinyoklion@users.noreply.github.com> Date: Thu, 31 Oct 2024 11:06:16 -0700 Subject: [PATCH] fix: Fix incompatibility with @types/node release. (#646) This change, https://github.com/DefinitelyTyped/DefinitelyTyped/pull/69997, to the `@types/node` package made typings for the emitter stricter and break the builds. Functionally the code is the same. --- packages/sdk/server-node/src/Emits.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sdk/server-node/src/Emits.ts b/packages/sdk/server-node/src/Emits.ts index b0a318a90..1715648e0 100644 --- a/packages/sdk/server-node/src/Emits.ts +++ b/packages/sdk/server-node/src/Emits.ts @@ -50,11 +50,11 @@ export function Emits(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); }