UNPKG

furystack-core

Version:
17 lines 810 B
"use strict"; 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