Skip to content

Commit

Permalink
Further tweak to once typings (event optional with promises)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonWoolf committed Sep 20, 2019
1 parent a8f269e commit 46a4c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ably.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ declare namespace Types {
on(eventOrCallback: EventType | EventType[] | CallbackType, callback?: CallbackType): void;
once(event: EventType, callback: CallbackType): void;
once(callback: CallbackType): void;
once(event: EventType): Promise<ResultType>;
once(event?: EventType): Promise<ResultType>;
off(eventOrCallback?: EventType | CallbackType, callback?: CallbackType): void;
listeners(eventName?: EventType): CallbackType[] | null;
}
Expand Down

0 comments on commit 46a4c4b

Please sign in to comment.