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

Commit 3517eb7e by Phil Gebauer Committed by Sushant

fix(types): add array of Buffers to WhereValue type (#11559)

1 parent c3c767e4
Showing with 4 additions and 1 deletions
...@@ -350,7 +350,7 @@ export type WhereValue = ...@@ -350,7 +350,7 @@ export type WhereValue =
| OrOperator | OrOperator
| AndOperator | AndOperator
| WhereGeometryOptions | WhereGeometryOptions
| (string | number | WhereAttributeHash)[]; // implicit [Op.or] | (string | number | Buffer | WhereAttributeHash)[]; // implicit [Op.or]
/** /**
* A hash of attributes to describe your search. * A hash of attributes to describe your search.
......
...@@ -15,9 +15,12 @@ let where: WhereOptions; ...@@ -15,9 +15,12 @@ let where: WhereOptions;
*/ */
where = { where = {
string: 'foo', string: 'foo',
strings: ['foo'],
number: 1, number: 1,
numbers: [1],
boolean: true, boolean: true,
buffer: Buffer.alloc(0), buffer: Buffer.alloc(0),
buffers: [Buffer.alloc(0)],
null: null, null: null,
}; };
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!