Skip to content

Commit 3517eb7

Browse files
fubarsushantdhiman
authored andcommitted
fix(types): add array of Buffers to WhereValue type (#11559)
1 parent c3c767e commit 3517eb7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

types/lib/model.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ export type WhereValue =
350350
| OrOperator
351351
| AndOperator
352352
| WhereGeometryOptions
353-
| (string | number | WhereAttributeHash)[]; // implicit [Op.or]
353+
| (string | number | Buffer | WhereAttributeHash)[]; // implicit [Op.or]
354354

355355
/**
356356
* A hash of attributes to describe your search.

types/test/where.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ let where: WhereOptions;
1515
*/
1616
where = {
1717
string: 'foo',
18+
strings: ['foo'],
1819
number: 1,
20+
numbers: [1],
1921
boolean: true,
2022
buffer: Buffer.alloc(0),
23+
buffers: [Buffer.alloc(0)],
2124
null: null,
2225
};
2326

0 commit comments

Comments
 (0)