@@ -130,7 +130,7 @@ export declare abstract class Model<T> extends Hooks {
130130 * @return Model A reference to the model, with the scope(s) applied. Calling scope again on the returned
131131 * model will clear the previous scope.
132132 */
133- static scope < T extends Model < T > > ( this : ( new ( ) => T ) , options ?: string | string [ ] | ScopeOptions | WhereOptions < any > ) : typeof T ;
133+ static scope ( options ?: string | string [ ] | ScopeOptions | WhereOptions < any > ) : typeof Model ;
134134
135135 /**
136136 * Search for multiple instances.
@@ -291,33 +291,28 @@ export declare abstract class Model<T> extends Hooks {
291291 */
292292 static build < T extends Model < T > > ( this : ( new ( ) => T ) , record ?: any , options ?: IBuildOptions ) : T ;
293293 static build < T extends Model < T > , A > ( this : ( new ( ) => T ) , record ?: A , options ?: IBuildOptions ) : T ;
294- static build < A > ( this : ( new ( ) => T ) , record ?: A , options ?: IBuildOptions ) : T ;
295294
296295 /**
297296 * Undocumented bulkBuild
298297 */
299298 static bulkBuild < T extends Model < T > > ( this : ( new ( ) => T ) , records : any [ ] , options ?: IBuildOptions ) : T [ ] ;
300299 static bulkBuild < T extends Model < T > , A > ( this : ( new ( ) => T ) , records : A [ ] , options ?: IBuildOptions ) : T [ ] ;
301- static bulkBuild < A > ( this : ( new ( ) => T ) , records : A [ ] , options ?: IBuildOptions ) : T [ ] ;
302300
303301 /**
304302 * Builds a new model instance and calls save on it.
305303 */
306304 static create < T extends Model < T > > ( this : ( new ( ) => T ) , values ?: any , options ?: ICreateOptions ) : Promise < T > ;
307305 static create < T extends Model < T > , A > ( this : ( new ( ) => T ) , values ?: A , options ?: ICreateOptions ) : Promise < T > ;
308- static create < A > ( this : ( new ( ) => T ) , values ?: A , options ?: ICreateOptions ) : Promise < T > ;
309306
310307 /**
311308 * Find a row that matches the query, or build (but don't save) the row if none is found.
312309 * The successfull result of the promise will be (instance, initialized) - Make sure to use .spread()
313310 */
314311 static findOrInitialize < T extends Model < T > > ( this : ( new ( ) => T ) , options : IFindOrInitializeOptions < any > ) : Promise < [ T , boolean ] > ;
315312 static findOrInitialize < T extends Model < T > , A > ( this : ( new ( ) => T ) , options : IFindOrInitializeOptions < A > ) : Promise < [ T , boolean ] > ;
316- static findOrInitialize < A > ( this : ( new ( ) => T ) , options : IFindOrInitializeOptions < A > ) : Promise < [ T , boolean ] > ;
317313
318314 static findOrBuild < T extends Model < T > > ( this : ( new ( ) => T ) , options : IFindOrInitializeOptions < any > ) : Promise < [ T , boolean ] > ;
319315 static findOrBuild < T extends Model < T > , A > ( this : ( new ( ) => T ) , options : IFindOrInitializeOptions < A > ) : Promise < [ T , boolean ] > ;
320- static findOrBuild < A > ( this : ( new ( ) => T ) , options : IFindOrInitializeOptions < A > ) : Promise < [ T , boolean ] > ;
321316
322317 /**
323318 * Find a row that matches the query, or build and save the row if none is found
@@ -332,15 +327,13 @@ export declare abstract class Model<T> extends Hooks {
332327 */
333328 static findOrCreate < T extends Model < T > > ( this : ( new ( ) => T ) , options : IFindOrInitializeOptions < any > ) : Promise < [ T , boolean ] > ;
334329 static findOrCreate < T extends Model < T > , A > ( this : ( new ( ) => T ) , options : IFindOrInitializeOptions < A > ) : Promise < [ T , boolean ] > ;
335- static findOrCreate < A > ( this : ( new ( ) => T ) , options : IFindOrInitializeOptions < A > ) : Promise < [ T , boolean ] > ;
336330
337331 /**
338332 * A more performant findOrCreate that will not work under a transaction (at least not in postgres)
339333 * Will execute a find call, if empty then attempt to create, if unique constraint then attempt to find again
340334 */
341335 static findCreateFind < T extends Model < T > > ( this : ( new ( ) => T ) , options : IFindCreateFindOptions < any > ) : Promise < [ T , boolean ] > ;
342336 static findCreateFind < T extends Model < T > , A > ( this : ( new ( ) => T ) , options : IFindCreateFindOptions < A > ) : Promise < [ T , boolean ] > ;
343- static findCreateFind < A > ( this : ( new ( ) => T ) , options : IFindCreateFindOptions < A > ) : Promise < [ T , boolean ] > ;
344337
345338 /**
346339 * Insert or update a single row. An update will be executed if a row which matches the supplied values on
@@ -378,7 +371,6 @@ export declare abstract class Model<T> extends Hooks {
378371 */
379372 static bulkCreate < T extends Model < T > > ( this : ( new ( ) => T ) , records : any [ ] , options ?: BulkCreateOptions ) : Promise < T [ ] > ;
380373 static bulkCreate < T extends Model < T > , A > ( this : ( new ( ) => T ) , records : A [ ] , options ?: BulkCreateOptions ) : Promise < T [ ] > ;
381- static bulkCreate < A > ( this : ( new ( ) => T ) , records : A [ ] , options ?: BulkCreateOptions ) : Promise < T [ ] > ;
382374
383375 /**
384376 * Truncate all instances of the model. This is a convenient method for Model.destroy({ truncate: true }).
@@ -404,8 +396,6 @@ export declare abstract class Model<T> extends Hooks {
404396 */
405397 static update < T extends Model < T > > ( this : ( new ( ) => T ) , values : any , options : UpdateOptions ) : Promise < [ number , Array < T > ] > ;
406398 static update < T extends Model < T > , A > ( this : ( new ( ) => T ) , values : A , options : UpdateOptions ) : Promise < [ number , Array < T > ] > ;
407- static update < A > ( this : ( new ( ) => T ) , values : A , options : UpdateOptions ) : Promise < [ number , Array < T > ] > ;
408-
409399 /**
410400 * Run a describe query on the table. The result will be return to the listener as a hash of attributes and
411401 * their types.
@@ -415,7 +405,7 @@ export declare abstract class Model<T> extends Hooks {
415405 /**
416406 * Unscope the model
417407 */
418- static unscoped < T extends Model < T > > ( this : ( new ( ) => T ) ) : typeof T ;
408+ static unscoped ( ) : typeof Model ;
419409
420410 /**
421411 * A reference to the sequelize instance
0 commit comments