Skip to content

Commit 0515a4c

Browse files
authored
fix: add type definition of AV.Query#sizeEqualTo (#662)
1 parent aaa3696 commit 0515a4c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ module.exports = function(AV) {
597597
* Add a constraint to the query that requires a particular
598598
* <strong>array</strong> key's length to be equal to the provided value.
599599
* @param {String} key The array key to check.
600-
* @param value The length value.
600+
* @param {number} value The length value.
601601
* @return {AV.Query} Returns the query, so you can chain this call.
602602
*/
603603
sizeEqualTo: function(key, value) {

storage.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ export class Query<T extends Queriable> extends BaseQuery<T> {
601601
near(key: string, point: GeoPoint): this;
602602
notContainedIn(key: string, values: any[]): this;
603603
notEqualTo(key: string, value: any): this;
604+
sizeEqualTo(key: string, value: number): this;
604605
startsWith(key: string, prefix: string): this;
605606
withinGeoBox(key: string, southwest: GeoPoint, northeast: GeoPoint): this;
606607
withinKilometers(key: string, point: GeoPoint, maxDistance: number): this;

0 commit comments

Comments
 (0)