1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.Scopes = void 0;
|
4 | const scope_service_1 = require("./scope-service");
|
5 |
|
6 |
|
7 |
|
8 | function 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 | }
|
20 | exports.Scopes = Scopes;
|
21 |
|
\ | No newline at end of file |