breeze2-odata4
Version:
Library to allow OData 4 support for breezejs 2
14 lines • 568 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var DisplayNameDecorator = (function () {
function DisplayNameDecorator() {
this.annotation = 'DisplayName';
}
DisplayNameDecorator.prototype.decorate = function (expression, annotation) {
var value = annotation.string;
expression.displayName = typeof value === 'string' ? value : value.text;
};
return DisplayNameDecorator;
}());
exports.DisplayNameDecorator = DisplayNameDecorator;
//# sourceMappingURL=display-name-decorator.js.map