UNPKG

@ima/plugin-rest-client

Version:

Generic REST API client plugin for the IMA application framework.

32 lines (31 loc) 946 B
/** * Decorator for setting the static {@code resourceName} property of an entity * class, which specifies the name of the REST API resource to use with the * provided entity class. * * @param {string} resourceName The name of the REST API resource. * @returns {function(function( * new: AbstractEntity, * RestClient, * Object<string, *>, * ?AbstractEntity=, * ))} Callback that sets the resource name on the class provided to * it. */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return _default; } }); const _default = (resourceName)=>{ return (classConstructor)=>{ Object.defineProperty(classConstructor, 'resourceName', { value: resourceName }); }; }; //# sourceMappingURL=resourceName.js.map