mts-booking-library 1.3.17 → 1.3.18
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,9 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.objectIsMTSErrorResponse = void 0;
|
4
4
|
var objectIsMTSErrorResponse = function (error) {
|
5
|
-
|
5
|
+
if (typeof error !== "object" || error === null) {
|
6
|
+
return false;
|
7
|
+
}
|
8
|
+
return "mtsCode" in error && "httpStatus" in error && "message" in error;
|
6
9
|
};
|
7
10
|
exports.objectIsMTSErrorResponse = objectIsMTSErrorResponse;
|