[bookshelf] Add missing parameters to the Collection.through method (#50125)

This commit is contained in:
Valentin Duricu
2020-12-15 19:07:25 +02:00
committed by GitHub
parent 9026f38e32
commit b26786eade

View File

@@ -164,7 +164,7 @@ declare namespace Bookshelf {
*/
save(key?: string, val?: any, options?: SaveOptions): BlueBird<T>;
save(attrs?: { [key: string]: any }, options?: SaveOptions): BlueBird<T>;
through<R extends Model<any>>(interim: ModelSubclass, throughForeignKey?: string, otherKey?: string): R;
through<R extends Model<any>>(interim: ModelSubclass, throughForeignKey?: string, otherKey?: string, throughForeignKeyTarget?: string, otherKeyTarget?: string): R;
where(properties: { [key: string]: any }): T;
where(
key: string,