UNPKG

625 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Table = void 0;
4const model_service_1 = require("../shared/model-service");
5function Table(arg) {
6 if (typeof arg === 'function') {
7 annotate(arg);
8 }
9 else {
10 const options = Object.assign({}, arg);
11 return (target) => annotate(target, options);
12 }
13}
14exports.Table = Table;
15function annotate(target, options = {}) {
16 (0, model_service_1.setModelName)(target.prototype, options.modelName || target.name);
17 (0, model_service_1.addOptions)(target.prototype, options);
18}
19//# sourceMappingURL=table.js.map
\No newline at end of file