Skip to content

Commit

Permalink
fix: unable to evaluate instanceof AjaxError
Browse files Browse the repository at this point in the history
  • Loading branch information
voliva committed Apr 27, 2021
1 parent 1f7b9c5 commit 3ede978
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/ajax/errors.ts
Expand Up @@ -37,7 +37,7 @@ export interface AjaxError extends Error {
response: any;
}

export interface AjaxErrorCtor {
export interface AjaxErrorCtor extends Function {
/**
* Internal use only. Do not manually create instances of this type.
* @internal
Expand Down Expand Up @@ -77,7 +77,7 @@ export const AjaxError: AjaxErrorCtor = createErrorClass(

export interface AjaxTimeoutError extends AjaxError {}

export interface AjaxTimeoutErrorCtor {
export interface AjaxTimeoutErrorCtor extends Function {
/**
* Internal use only. Do not manually create instances of this type.
* @internal
Expand Down

0 comments on commit 3ede978

Please sign in to comment.