UNPKG

coloquent-test2

Version:

Library for retrieving model objects from a JSON-API, with a fluent syntax inspired by Laravel Eloquent.

18 lines 900 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var AxiosHttpClientResponse_1 = require("./AxiosHttpClientResponse"); var AxiosHttpClientPromise = /** @class */ (function () { function AxiosHttpClientPromise(axiosPromise) { this.axiosPromise = axiosPromise; } AxiosHttpClientPromise.prototype.then = function (onFulfilled, onRejected) { var onFulfilled2 = (function (axiosResponse) { return onFulfilled(new AxiosHttpClientResponse_1.AxiosHttpClientResponse(axiosResponse)); }); return this.axiosPromise.then(onFulfilled2, onRejected); }; AxiosHttpClientPromise.prototype.catch = function (onRejected) { return this.axiosPromise.catch(onRejected); }; return AxiosHttpClientPromise; }()); exports.AxiosHttpClientPromise = AxiosHttpClientPromise; //# sourceMappingURL=AxiosHttpClientPromise.js.map