Skip to content

Commit

Permalink
fix: add typing for RealtimeChannelCallbacks.history with no params
Browse files Browse the repository at this point in the history
  • Loading branch information
owenpearson committed Nov 9, 2022
1 parent 74c638b commit 8f18eab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ably.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2523,6 +2523,12 @@ declare namespace Types {
* @param callback - A function which, upon success, will be called with a {@link Types.PaginatedResult} object containing an array of {@link Message} objects. Upon failure, the function will be called with information about the error.
*/
history(params?: RealtimeHistoryParams, callback?: paginatedResultCallback<Message>): void;
/**
* Retrieves a {@link Types.PaginatedResult} object, containing an array of historical {@link Message} objects for the channel. If the channel is configured to persist messages, then messages can be retrieved from history for up to 72 hours in the past. If not, messages can only be retrieved from history for up to two minutes in the past.
*
* @param callback - A function which, upon success, will be called with a {@link Types.PaginatedResult} object containing an array of {@link Message} objects. Upon failure, the function will be called with information about the error.
*/
history(callback?: paginatedResultCallback<Message>): void;
/**
* Sets the {@link ChannelOptions} for the channel.
*
Expand Down

0 comments on commit 8f18eab

Please sign in to comment.