Skip to content

Commit

Permalink
fix serial
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Nov 29, 2024
1 parent dd36459 commit 839dc10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,11 +515,11 @@ export default class Emittery<
- If all listeners succeed, resolves with undefined
- If any listeners fail, resolves with an array with exactly one error
*/
emitSerial<Name extends DatalessEvents>(eventName: Name): Promise<[unknown]>;
emitSerial<Name extends DatalessEvents>(eventName: Name): Promise<undefined | [unknown]>;
emitSerial<Name extends keyof EventData>(
eventName: Name,
eventData: EventData[Name]
): Promise<[unknown]>;
): Promise<undefined | [unknown]>;

/**
Subscribe to be notified about any event.
Expand Down

0 comments on commit 839dc10

Please sign in to comment.