@ima/plugin-rest-client
Version:
Generic REST API client plugin for the IMA application framework.
27 lines (26 loc) • 712 B
JavaScript
/**
* Decorator for settings the static {@code isImmutable} flag on an entity
* class, which makes all entities of that type immutable.
*
* @param {function(
* new: AbstractEntity,
* RestClient,
* Object<string, *>,
* ?AbstractEntity=
* )} classConstructor The entity class.
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function() {
return _default;
}
});
const _default = (classConstructor)=>{
Object.defineProperty(classConstructor, 'isImmutable', {
value: true
});
};
//# sourceMappingURL=immutable.js.map