sequelize-typescript
Version:
Decorators and some other features for sequelize
12 lines (11 loc) • 469 B
TypeScript
import { ScopeTableOptions } from './scope-table-options';
import { ScopesOptionsGetter } from './scope-options';
/**
* Decorator for defining Model scopes
*/
export declare function Scopes(scopesGetter: ScopesOptionsGetter): Function;
/**
* Decorator for defining Model scopes
* @deprecated
*/
export declare function Scopes<TCreationAttributes extends {}, TModelAttributes extends {}>(scopes: ScopeTableOptions<TCreationAttributes, TModelAttributes>): Function;