Skip to content

Commit

Permalink
docs: mention bigint in the jsdoc for Model.findByPk
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed May 7, 2022
1 parent 4b2132e commit 89e43b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -1924,8 +1924,8 @@ export class Model {
* Returns the model with the matching primary key.
* If not found, returns null or throws an error if {@link FindOptions.rejectOnEmpty} is set.
*
* @param {number|string|Buffer} param The value of the desired instance's primary key.
* @param {object} [options] find options
* @param {number|BigInt|string|Buffer} param The value of the desired instance's primary key.
* @param {object} [options] find options
* @returns {Promise<Model|null>}
*/
static async findByPk(param, options) {
Expand Down

0 comments on commit 89e43b8

Please sign in to comment.