Merge pull request #24664 from AtaruOhto/master

sequelize: fix: model update method was typed incorrectly
This commit is contained in:
Paul van Brenk
2018-04-03 11:30:48 -07:00
committed by GitHub
+1 -1
View File
@@ -4046,7 +4046,7 @@ declare namespace sequelize {
* elements. The first element is always the number of affected rows, while the second element is the actual
* affected rows (only supported in postgres with `options.returning` true.)
*/
update(values: TAttributes, options: UpdateOptions): Promise<[number, TInstance[]]>;
update(values: TAttributes, options?: UpdateOptions): Promise<[number, TInstance[]]>;
/**
* Run a describe query on the table. The result will be return to the listener as a hash of attributes and