Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ably.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ export interface AuthOptions {
* @param tokenRequestOrDetails - A valid `TokenRequest`, `TokenDetails` or Ably JWT to be used for authentication.
*/
callback: (
error: ErrorInfo | string | null,
error: Error | string | null,
tokenRequestOrDetails: TokenDetails | TokenRequest | string | null,
) => void,
): void;
Expand Down
2 changes: 1 addition & 1 deletion src/common/lib/client/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ class Auth {
let tokenRequestCallback: (
data: API.TokenParams,
callback: (
error: API.ErrorInfo | RequestResultError | string | null,
error: API.ErrorInfo | Error | RequestResultError | string | null,
tokenRequestOrDetails: API.TokenDetails | API.TokenRequest | string | null,
contentType?: string,
) => void,
Expand Down
Loading