diff --git a/lib/typed-events.ts b/lib/typed-events.ts index 4294e44c..f759d1d3 100644 --- a/lib/typed-events.ts +++ b/lib/typed-events.ts @@ -58,7 +58,7 @@ export type ReservedOrUserListener< * Needed because of https://github.com/microsoft/TypeScript/issues/41778 */ type FallbackToUntypedListener = [T] extends [never] - ? (...args: any[]) => void + ? (...args: any[]) => void | Promise : T; /**