Skip to content

Commit

Permalink
fix: typings for Model.findByPk to say it allows BigInt
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed May 5, 2022
1 parent a2224bd commit 4162dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1774,7 +1774,7 @@ export type ModelAttributes<M extends Model = Model, TAttributes = any> = {
/**
* Possible types for primary keys
*/
export type Identifier = number | string | Buffer;
export type Identifier = number | BigInt | string | Buffer;

/**
* Options for model definition.
Expand Down

0 comments on commit 4162dc2

Please sign in to comment.