Skip to content

Commit edea8ca

Browse files
committed
fix(ts): Query#first might return undefined
1 parent 7eef1c3 commit edea8ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

storage.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ export class Query<T extends Queriable> extends BaseQuery<T> {
543543
endsWith(key: string, suffix: string): this;
544544
equalTo(key: string, value: any): this;
545545
exists(key: string): this;
546-
first(options?: AuthOptions): Promise<T>;
546+
first(options?: AuthOptions): Promise<T | undefined>;
547547
get(objectId: string, options?: AuthOptions): Promise<T>;
548548
greaterThan(key: string, value: any): this;
549549
greaterThanOrEqualTo(key: string, value: any): this;
@@ -1170,6 +1170,7 @@ export function init(options: {
11701170
appId: string;
11711171
appKey: string;
11721172
masterKey?: string;
1173+
hookKey?: string;
11731174
region?: string;
11741175
production?: boolean;
11751176
serverURLs?: string | ServerURLs;

0 commit comments

Comments
 (0)