Skip to content

Commit 3ede978

Browse files
committed
fix: unable to evaluate instanceof AjaxError
1 parent 1f7b9c5 commit 3ede978

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal/ajax/errors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface AjaxError extends Error {
3737
response: any;
3838
}
3939

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

7878
export interface AjaxTimeoutError extends AjaxError {}
7979

80-
export interface AjaxTimeoutErrorCtor {
80+
export interface AjaxTimeoutErrorCtor extends Function {
8181
/**
8282
* Internal use only. Do not manually create instances of this type.
8383
* @internal

0 commit comments

Comments
 (0)