mirror of
https://github.com/flarum/core.git
synced 2025-05-05 06:57:55 +02:00
convert: common/utils/RequestError
This commit is contained in:
parent
521cefbc2d
commit
4f34e326ef
@ -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;
|
Loading…
x
Reference in New Issue
Block a user