UNPKG

657 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Scopes = void 0;
4const scope_service_1 = require("./scope-service");
5/**
6 * Decorator for defining Model scopes
7 */
8function Scopes(scopesOrScopesGetter) {
9 return (target) => {
10 if (typeof scopesOrScopesGetter === 'function') {
11 (0, scope_service_1.addScopeOptionsGetter)(target.prototype, {
12 getScopes: scopesOrScopesGetter,
13 });
14 }
15 else {
16 (0, scope_service_1.addScopeOptions)(target.prototype, scopesOrScopesGetter);
17 }
18 };
19}
20exports.Scopes = Scopes;
21//# sourceMappingURL=scopes.js.map
\No newline at end of file