1
0

add: Megalodon, initial mastodon api

This commit is contained in:
Mar0xy
2023-09-23 18:49:47 +02:00
parent 240d76a987
commit 2375d043d1
103 changed files with 9492 additions and 82 deletions
+13
View File
@@ -0,0 +1,13 @@
export class RequestCanceledError extends Error {
public isCancel: boolean;
constructor(msg: string) {
super(msg);
this.isCancel = true;
Object.setPrototypeOf(this, RequestCanceledError);
}
}
export const isCancel = (value: any): boolean => {
return value && value.isCancel;
};