From fb2dba6075ab4925b55010cf6499aea420d1c941 Mon Sep 17 00:00:00 2001 From: David Sevilla Martin Date: Tue, 23 Jun 2020 10:00:47 -0400 Subject: [PATCH] convert: common/utils/RequestError --- .../common/utils/{RequestError.js => RequestError.ts} | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) rename framework/core/js/src/common/utils/{RequestError.js => RequestError.ts} (55%) diff --git a/framework/core/js/src/common/utils/RequestError.js b/framework/core/js/src/common/utils/RequestError.ts similarity index 55% rename from framework/core/js/src/common/utils/RequestError.js rename to framework/core/js/src/common/utils/RequestError.ts index 3346e673f..73e36f854 100644 --- a/framework/core/js/src/common/utils/RequestError.js +++ b/framework/core/js/src/common/utils/RequestError.ts @@ -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;