DefinitelyTyped/sequelize
Aleksandar Rodić 75ffb8e47d Changing 'scope' definition (#14810)
current definition
```ts
scope(options?: string | string[] | ScopeOptions | WhereOptions): this;
```
doesn't allow are valid calls. example from [documentation](http://docs.sequelizejs.com/en/latest/docs/scopes/):
```ts
Project.scope('random', { method: ['accessLevel', 19]}).findAll();
```
changing it to
```ts
scope(options?: string | ScopeOptions | WhereOptions | Array<string|ScopeOptions|WhereOptions>): this;
```
should fix the issue since, according to the docs
```ts
// These two are equivalent
Project.scope('deleted', 'activeUsers').findAll();
Project.scope(['deleted', 'activeUsers']).findAll();
```
2017-03-10 15:09:55 -08:00
..
v3 Changing 'scope' definition (#14810) 2017-03-10 15:09:55 -08:00
index.d.ts Changing 'scope' definition (#14810) 2017-03-10 15:09:55 -08:00
sequelize-tests.ts Changing 'scope' definition (#14810) 2017-03-10 15:09:55 -08:00
tsconfig.json Use "lib" in tsconfigs instead of "target". (#13968) 2017-01-18 07:51:51 -08:00