Skip to content

Commit deb7afb

Browse files
committed
fix(ts): fix signatures for Query#select and Query#include
1 parent eb5d8cb commit deb7afb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

storage.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ export class Query extends BaseObject {
451451

452452
constructor(objectClass: any);
453453

454-
static or(...var_args: Query[]): Query;
455-
static and(...var_args: Query[]): Query;
454+
static or(...querys: Query[]): Query;
455+
static and(...querys: Query[]): Query;
456456
static doCloudQuery<T>(
457457
cql: string,
458458
pvalues?: any,
@@ -483,7 +483,7 @@ export class Query extends BaseObject {
483483
get<T>(objectId: string, options?: Query.GetOptions): Promise<T>;
484484
greaterThan(key: string, value: any): Query;
485485
greaterThanOrEqualTo(key: string, value: any): Query;
486-
include(key: string): Query;
486+
include(...keys: string[]): Query;
487487
include(keys: string[]): Query;
488488
includeACL(value?: boolean): Query;
489489
lessThan(key: string, value: any): Query;
@@ -496,6 +496,7 @@ export class Query extends BaseObject {
496496
notContainedIn(key: string, values: any[]): Query;
497497
notEqualTo(key: string, value: any): Query;
498498
select(...keys: string[]): Query;
499+
select(keys: string[]): Query;
499500
skip(n: number): Query;
500501
startsWith(key: string, prefix: string): Query;
501502
withinGeoBox(key: string, southwest: GeoPoint, northeast: GeoPoint): Query;

0 commit comments

Comments
 (0)