1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.DefaultScope = void 0;
|
4 | const scope_service_1 = require("./scope-service");
|
5 |
|
6 |
|
7 |
|
8 | function DefaultScope(scopeOrSsopeGetter) {
|
9 | return (target) => {
|
10 | if (typeof scopeOrSsopeGetter === 'function') {
|
11 | (0, scope_service_1.addScopeOptionsGetter)(target.prototype, { getDefaultScope: scopeOrSsopeGetter });
|
12 | }
|
13 | else {
|
14 | (0, scope_service_1.addScopeOptions)(target.prototype, { defaultScope: scopeOrSsopeGetter });
|
15 | }
|
16 | };
|
17 | }
|
18 | exports.DefaultScope = DefaultScope;
|
19 |
|
\ | No newline at end of file |