ngx-resource-gearheart
Version:
Angular2 resource module with simple decorators. Customized by Gearheart.
24 lines (23 loc) • 930 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var TGetParamsMappingType;
(function (TGetParamsMappingType) {
TGetParamsMappingType[TGetParamsMappingType["Plain"] = 0] = "Plain";
TGetParamsMappingType[TGetParamsMappingType["Bracket"] = 1] = "Bracket";
})(TGetParamsMappingType = exports.TGetParamsMappingType || (exports.TGetParamsMappingType = {}));
var ResourceGlobalConfig = (function () {
function ResourceGlobalConfig() {
}
return ResourceGlobalConfig;
}());
ResourceGlobalConfig.url = null;
ResourceGlobalConfig.path = null;
ResourceGlobalConfig.headers = {
'Accept': 'application/json',
'Content-Type': 'application/json'
};
ResourceGlobalConfig.params = null;
ResourceGlobalConfig.data = null;
ResourceGlobalConfig.getParamsMappingType = TGetParamsMappingType.Plain;
ResourceGlobalConfig.mockResponses = false;
exports.ResourceGlobalConfig = ResourceGlobalConfig;