furystack-core
Version:
FuryStack framework, Core package
17 lines • 810 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const EdmTypes_1 = require("../endpoint/EdmTypes");
const ModelDescriptorStore_1 = require("./ModelDescriptorStore");
const ODataPropertyDescriptorEntry_1 = require("./ODataPropertyDescriptorEntry");
function isODataPropertyDesrciptorEntry(obj) {
return obj.propertyName !== undefined && obj.edmType !== undefined;
}
exports.isODataPropertyDesrciptorEntry = isODataPropertyDesrciptorEntry;
/**
* Decorator for an OData property
*/
function Property(target, propertyKey) {
ModelDescriptorStore_1.ModelDescriptorStore.Add(target, new ODataPropertyDescriptorEntry_1.ODataPropertyDesrciptorEntry(propertyKey, EdmTypes_1.EdmType.Unknown));
}
exports.Property = Property;
//# sourceMappingURL=ODataProperty.js.map