Skip to content

Commit 6223073

Browse files
authored
Updated typings of admin.database.Query.once() (#300)
1 parent 1953682 commit 6223073

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Unreleased
22

3+
- [changed] Updated the typings of the `admin.database.Query.once()`
4+
method to return a more specific type.
35
- [changed] Admin SDK can now read the Firebase/GCP project ID from both
46
`GCLOUD_PROJECT` and `GOOGLE_CLOUD_PROJECT` environment variables.
57

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ declare namespace admin.database {
307307
successCallback?: (a: admin.database.DataSnapshot, b?: string) => any,
308308
failureCallbackOrContext?: Object|null,
309309
context?: Object|null
310-
): Promise<any>;
310+
): Promise<admin.database.DataSnapshot>;
311311
orderByChild(path: string): admin.database.Query;
312312
orderByKey(): admin.database.Query;
313313
orderByPriority(): admin.database.Query;

0 commit comments

Comments
 (0)