@@ -7082,7 +7082,7 @@ declare namespace firebase.database {
7082
7082
* complete.
7083
7083
* @return Resolves when remove on server is complete.
7084
7084
*/
7085
- remove ( onComplete ?: ( a : Error | null ) => any ) : Promise < any > ;
7085
+ remove ( onComplete ?: ( a : Error | null ) => void ) : Promise < void > ;
7086
7086
/**
7087
7087
* The root `Reference` of the Database.
7088
7088
*
@@ -7160,7 +7160,7 @@ declare namespace firebase.database {
7160
7160
* complete.
7161
7161
* @return Resolves when write to server is complete.
7162
7162
*/
7163
- set ( value : any , onComplete ?: ( a : Error | null ) => any ) : Promise < any > ;
7163
+ set ( value : any , onComplete ?: ( a : Error | null ) => void ) : Promise < void > ;
7164
7164
/**
7165
7165
* Sets a priority for the data at this Database location.
7166
7166
*
@@ -7172,8 +7172,8 @@ declare namespace firebase.database {
7172
7172
*/
7173
7173
setPriority (
7174
7174
priority : string | number | null ,
7175
- onComplete : ( a : Error | null ) => any
7176
- ) : Promise < any > ;
7175
+ onComplete : ( a : Error | null ) => void
7176
+ ) : Promise < void > ;
7177
7177
/**
7178
7178
* Writes data the Database location. Like `set()` but also specifies the
7179
7179
* priority for that data.
@@ -7187,8 +7187,8 @@ declare namespace firebase.database {
7187
7187
setWithPriority (
7188
7188
newVal : any ,
7189
7189
newPriority : string | number | null ,
7190
- onComplete ?: ( a : Error | null ) => any
7191
- ) : Promise < any > ;
7190
+ onComplete ?: ( a : Error | null ) => void
7191
+ ) : Promise < void > ;
7192
7192
/**
7193
7193
* Atomically modifies the data at this location.
7194
7194
*
@@ -7280,9 +7280,9 @@ declare namespace firebase.database {
7280
7280
a : Error | null ,
7281
7281
b : boolean ,
7282
7282
c : firebase . database . DataSnapshot | null
7283
- ) => any ,
7283
+ ) => void ,
7284
7284
applyLocally ?: boolean
7285
- ) : Promise < any > ;
7285
+ ) : Promise < TransactionResult > ;
7286
7286
/**
7287
7287
* Writes multiple values to the Database at once.
7288
7288
*
@@ -7329,7 +7329,21 @@ declare namespace firebase.database {
7329
7329
* complete.
7330
7330
* @return Resolves when update on server is complete.
7331
7331
*/
7332
- update ( values : Object , onComplete ?: ( a : Error | null ) => any ) : Promise < any > ;
7332
+ update (
7333
+ values : Object ,
7334
+ onComplete ?: ( a : Error | null ) => void
7335
+ ) : Promise < void > ;
7336
+ }
7337
+
7338
+ interface TransactionResult {
7339
+ /**
7340
+ * Whether the transaction was successfully committed.
7341
+ */
7342
+ readonly committed : boolean ;
7343
+ /**
7344
+ * The resulting data snapshot.
7345
+ */
7346
+ readonly snapshot : DataSnapshot ;
7333
7347
}
7334
7348
7335
7349
interface ThenableReference
0 commit comments