1 | import { ScopeTableOptions } from './scope-table-options';
|
2 | import { ScopeFindOptions } from './scope-find-options';
|
3 | import { FindOptions } from 'sequelize';
|
4 | export interface ScopeOptions<TCreationAttributes extends {}, TModelAttributes extends {}> extends ScopeTableOptions<TCreationAttributes, TModelAttributes> {
|
5 | defaultScope?: ScopeFindOptions<TCreationAttributes, TModelAttributes>;
|
6 | }
|
7 | export interface ScopeOptionsGetters {
|
8 | getDefaultScope?: DefaultScopeGetter;
|
9 | getScopes?: ScopesOptionsGetter;
|
10 | }
|
11 | export declare type DefaultScopeGetter = () => FindOptions;
|
12 | export declare type ScopesOptionsGetter = () => {
|
13 | [sopeName: string]: ScopesOptions;
|
14 | };
|
15 | export declare type ScopesOptions = FindOptions | ((...args: any[]) => FindOptions);
|
16 |
|
\ | No newline at end of file |