1
0
mirror of https://github.com/flarum/core.git synced 2025-07-08 18:43:14 +02:00

convert: common/utils/RequestError

This commit is contained in:
David Sevilla Martin
2020-06-23 10:00:47 -04:00
committed by Franz Liedke
parent 521cefbc2d
commit 4f34e326ef

View File

@ -1,5 +1,14 @@
export default class RequestError {
constructor(status, responseText, options, xhr) {
status: string;
options: object;
xhr: XMLHttpRequest;
responseText: string | null;
response: object | null;
alert: any;
constructor(status: string, responseText: string | null, options: object, xhr: XMLHttpRequest) {
this.status = status;
this.responseText = responseText;
this.options = options;