File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -327,14 +327,16 @@ export declare class Model<T> extends Hooks {
327
327
* an instance of sequelize.TimeoutError will be thrown instead. If a transaction is created, a savepoint
328
328
* will be created instead, and any unique constraint violation will be handled internally.
329
329
*/
330
- static findOrCreate < T extends Model < T > > ( options : IFindOrInitializeOptions < T > ) : Promise < [ T , boolean ] > ;
331
-
330
+ static findOrCreate < T extends Model < T > > ( options : IFindOrInitializeOptions < any > ) : Promise < [ T , boolean ] > ;
331
+ static findOrCreate < T extends Model < T > , A > ( options : IFindOrInitializeOptions < A > ) : Promise < [ T , boolean ] > ;
332
+
332
333
/**
333
334
* A more performant findOrCreate that will not work under a transaction (at least not in postgres)
334
335
* Will execute a find call, if empty then attempt to create, if unique constraint then attempt to find again
335
336
*/
336
- static findCreateFind < T extends Model < T > > ( options : IFindCreateFindOptions < T > ) : Promise < T > ;
337
-
337
+ static findCreateFind < T extends Model < T > > ( options : IFindCreateFindOptions < any > ) : Promise < [ T , boolean ] > ;
338
+ static findCreateFind < T extends Model < T > , A > ( options : IFindCreateFindOptions < A > ) : Promise < [ T , boolean ] > ;
339
+
338
340
/**
339
341
* Insert or update a single row. An update will be executed if a row which matches the supplied values on
340
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