UNPKG

1.22 kBTypeScriptView Raw
1import { ModelCtor } from '../model/model/model';
2import { ScopeOptions, ScopeOptionsGetters, ScopesOptions } from './scope-options';
3/**
4 * Resolves scopes and adds them to the specified models
5 */
6export declare function resolveScopes(models: ModelCtor[]): void;
7export declare const resolveScope: (scopeName: string, model: ModelCtor, options: ScopesOptions) => void;
8export declare const addScopeOptionsGetter: (target: any, options: ScopeOptionsGetters) => void;
9export declare const getScopeOptionsGetters: (target: any) => ScopeOptionsGetters;
10export declare const setScopeOptionsGetters: (target: any, options: ScopeOptionsGetters) => void;
11/**
12 * @deprecated
13 */
14export declare const resolvesDeprecatedScopes: (model: ModelCtor) => void;
15/**
16 * Adds scope option meta data for specified prototype
17 * @deprecated
18 */
19export declare function addScopeOptions<TCreationAttributes, TModelAttributes>(target: any, options: ScopeOptions<TCreationAttributes, TModelAttributes>): void;
20/**
21 * Returns scope option meta data from specified target
22 * @deprecated
23 */
24export declare function getScopeOptions<TCreationAttributes, TModelAttributes>(target: any): ScopeOptions<TCreationAttributes, TModelAttributes> | undefined;