File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " firebase " : patch
3
+ ---
4
+
5
+ Add the missing type definition for 'Query.get()' for RTDB
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ export interface Query {
81
81
callback ?: ( a : DataSnapshot , b ?: string | null ) => any ,
82
82
context ?: Object | null
83
83
) : void ;
84
+ get ( ) : Promise < DataSnapshot > ;
84
85
on (
85
86
eventType : EventType ,
86
87
callback : ( a : DataSnapshot , b ?: string | null ) => any ,
Original file line number Diff line number Diff line change @@ -6171,6 +6171,16 @@ declare namespace firebase.database {
6171
6171
context ?: Object | null
6172
6172
) : void ;
6173
6173
6174
+ /**
6175
+ * Gets the most up-to-date result for this query.
6176
+ *
6177
+ * @return A promise which resolves to the resulting DataSnapshot if
6178
+ * a value is available, or rejects if the client is unable to return
6179
+ * a value (e.g., if the server is unreachable and there is nothing
6180
+ * cached).
6181
+ */
6182
+ get ( ) : Promise < DataSnapshot > ;
6183
+
6174
6184
/**
6175
6185
* Listens for data changes at a particular location.
6176
6186
*
You can’t perform that action at this time.
0 commit comments