不要怂,就是干,撸起袖子干!

Commit c3c767e4 by Phil Gebauer Committed by Sushant

fix(types): add Buffer to WhereValue type (#11499)

1 parent 3a141ac8
Showing with 13 additions and 0 deletions
...@@ -341,6 +341,7 @@ export type WhereValue = ...@@ -341,6 +341,7 @@ export type WhereValue =
| string // literal value | string // literal value
| number // literal value | number // literal value
| boolean // literal value | boolean // literal value
| Buffer // literal value
| null | null
| WhereOperators | WhereOperators
| WhereAttributeHash // for JSON columns | WhereAttributeHash // for JSON columns
......
...@@ -9,6 +9,18 @@ let where: WhereOptions; ...@@ -9,6 +9,18 @@ let where: WhereOptions;
// From https://sequelize.org/master/en/v4/docs/querying/ // From https://sequelize.org/master/en/v4/docs/querying/
/**
* Literal values
* @see WhereValue
*/
where = {
string: 'foo',
number: 1,
boolean: true,
buffer: Buffer.alloc(0),
null: null,
};
// Operators // Operators
const and: AndOperator = { const and: AndOperator = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!