File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export declare class Model<T> extends Hooks {
132
132
* @return Model A reference to the model, with the scope(s) applied. Calling scope again on the returned
133
133
* model will clear the previous scope.
134
134
*/
135
- static scope ( options ?: string | string [ ] | ScopeOptions | WhereOptions ) : typeof Model ;
135
+ static scope ( options ?: string | string [ ] | ScopeOptions | WhereOptions < any > ) : typeof Model ;
136
136
137
137
/**
138
138
* Search for multiple instances.
@@ -329,14 +329,14 @@ export declare class Model<T> extends Hooks {
329
329
*/
330
330
static findOrCreate < T extends Model < T > > ( options : IFindOrInitializeOptions < any > ) : Promise < [ T , boolean ] > ;
331
331
static findOrCreate < T extends Model < T > , A > ( options : IFindOrInitializeOptions < A > ) : Promise < [ T , boolean ] > ;
332
-
332
+
333
333
/**
334
334
* A more performant findOrCreate that will not work under a transaction (at least not in postgres)
335
335
* Will execute a find call, if empty then attempt to create, if unique constraint then attempt to find again
336
336
*/
337
337
static findCreateFind < T extends Model < T > > ( options : IFindCreateFindOptions < any > ) : Promise < [ T , boolean ] > ;
338
338
static findCreateFind < T extends Model < T > , A > ( options : IFindCreateFindOptions < A > ) : Promise < [ T , boolean ] > ;
339
-
339
+
340
340
/**
341
341
* Insert or update a single row. An update will be executed if a row which matches the supplied values on
342
342
* either the primary key or a unique key is found. Note that the unique index must be defined in your
You can’t perform that action at this time.
0 commit comments