1
0

test: check old megalodon version

This commit is contained in:
Mar0xy
2023-09-25 01:20:03 +02:00
parent ead0667320
commit 89eea5df52
230 changed files with 7537 additions and 21119 deletions
+8 -8
View File
@@ -1,13 +1,13 @@
export class RequestCanceledError extends Error {
public isCancel: boolean
public isCancel: boolean;
constructor(msg: string) {
super(msg)
this.isCancel = true
Object.setPrototypeOf(this, RequestCanceledError)
}
constructor(msg: string) {
super(msg);
this.isCancel = true;
Object.setPrototypeOf(this, RequestCanceledError);
}
}
export const isCancel = (value: any): boolean => {
return value && value.isCancel
}
return value && value.isCancel;
};