minimongo
Version:
Client-side mongo database with server sync over http
24 lines (23 loc) • 633 B
TypeScript
/** Error class for jqXHR or XMLHttpRequest
* Includes status, statusText, responseText, and stack
* Also includes done method for legacy code that looks for it to determine if error
* is an XHRError
*/
export declare class XHRError extends Error {
status: number;
statusText: string;
responseText?: string;
done: true;
constructor(xhr: {
status: number;
statusText: string;
responseText?: string;
});
toJSON(): {
message: string;
status: number;
statusText: string;
responseText: string | undefined;
stack: string | undefined;
};
}