Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit f7d813d

Browse files
committed
Type query.once() to return a promise with datasnapshot
1 parent b7014ae commit f7d813d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firebase.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ export interface OnDisconnect {
549549
// WebAPI Query
550550
export interface Query {
551551
on(eventType: string, callback: (a: any, b?: string) => any): Promise<any>;
552-
once(eventType: string): Promise<any>;
552+
once(eventType: string): Promise<DataSnapshot>;
553553
off(eventType?: string, callback?: (a: DataSnapshot, b?: string | null) => any, context?: Object | null): void;
554554
orderByChild(value: string): Query;
555555
orderByKey(): Query;

0 commit comments

Comments
 (0)