@@ -4399,7 +4399,9 @@ declare namespace firebase.database {
4399
4399
* ```
4400
4400
*
4401
4401
* @param eventType One of the following strings: "value",
4402
- * "child_added", "child_changed", "child_removed", or "child_moved."
4402
+ * "child_added", "child_changed", "child_removed", or "child_moved." If
4403
+ * no eventType is specified, all callbacks for the `Reference` will be
4404
+ * removed.
4403
4405
* @param callback The
4404
4406
* callback function that was passed to `on()`.
4405
4407
* @param context The context that was passed to `on()`.
@@ -4524,7 +4526,10 @@ declare namespace firebase.database {
4524
4526
*/
4525
4527
on (
4526
4528
eventType : EventType ,
4527
- callback : ( a : firebase . database . DataSnapshot | null , b ?: string | null ) => any ,
4529
+ callback : (
4530
+ a : firebase . database . DataSnapshot ,
4531
+ b ?: string | null
4532
+ ) => any ,
4528
4533
cancelCallbackOrContext ?: Object | null ,
4529
4534
context ?: Object | null
4530
4535
) : ( a : firebase . database . DataSnapshot | null , b ?: string | null ) => any ;
@@ -4564,10 +4569,10 @@ declare namespace firebase.database {
4564
4569
*/
4565
4570
once (
4566
4571
eventType : EventType ,
4567
- successCallback ?: ( a : DataSnapshot , b ?: string | null ) => any ,
4568
- cancelCallbackOrContext ?: ( ( a : Error ) => void ) | Object | null ,
4572
+ successCallback ?: ( a : firebase . database . DataSnapshot , b ?: string | null ) => any ,
4573
+ failureCallbackOrContext ?: ( ( a : Error ) => void ) | Object | null ,
4569
4574
context ?: Object | null
4570
- ) : Promise < DataSnapshot > ;
4575
+ ) : Promise < firebase . database . DataSnapshot > ;
4571
4576
/**
4572
4577
* Generates a new `Query` object ordered by the specified child key.
4573
4578
*
0 commit comments