"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapResponse = wrapResponse;
const _1 = require("../Class/$");
function wrapResponse(response, system) {
    const $response = new (class Response_ extends _1.$ {
        constructor() {
            super(...arguments);
            this.__ = ['RES'];
        }
        toJson() {
            return response.json();
        }
        toText() {
            return response.text();
        }
        toBlob() {
            return response.blob();
        }
    })(system);
    return $response;
}
//# sourceMappingURL=Response.js.map