Skip to content

Commit 28c60fd

Browse files
committed
Fix model scope types
1 parent 4c7a48d commit 28c60fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/models/Model.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export declare class Model<T> extends Hooks {
132132
* @return Model A reference to the model, with the scope(s) applied. Calling scope again on the returned
133133
* model will clear the previous scope.
134134
*/
135-
static scope(options?: string | string[] | ScopeOptions | WhereOptions): typeof Model;
135+
static scope(options?: string | string[] | ScopeOptions | WhereOptions<any>): typeof Model;
136136

137137
/**
138138
* Search for multiple instances.
@@ -329,14 +329,14 @@ export declare class Model<T> extends Hooks {
329329
*/
330330
static findOrCreate<T extends Model<T>>(options: IFindOrInitializeOptions<any>): Promise<[T, boolean]>;
331331
static findOrCreate<T extends Model<T>, A>(options: IFindOrInitializeOptions<A>): Promise<[T, boolean]>;
332-
332+
333333
/**
334334
* A more performant findOrCreate that will not work under a transaction (at least not in postgres)
335335
* Will execute a find call, if empty then attempt to create, if unique constraint then attempt to find again
336336
*/
337337
static findCreateFind<T extends Model<T>>(options: IFindCreateFindOptions<any>): Promise<[T, boolean]>;
338338
static findCreateFind<T extends Model<T>, A>(options: IFindCreateFindOptions<A>): Promise<[T, boolean]>;
339-
339+
340340
/**
341341
* Insert or update a single row. An update will be executed if a row which matches the supplied values on
342342
* either the primary key or a unique key is found. Note that the unique index must be defined in your

0 commit comments

Comments
 (0)