@@ -145,9 +145,9 @@ export class Reference extends Query {
145
145
* @param {* } newVal
146
146
* @param {string|number|null } newPriority
147
147
* @param {function(?Error)= } opt_onComplete
148
- * @return {!firebase. Promise }
148
+ * @return {!Promise }
149
149
*/
150
- setWithPriority ( newVal , newPriority , onComplete ?) {
150
+ setWithPriority ( newVal , newPriority , onComplete ?) : Promise < any > {
151
151
validateArgCount ( 'Firebase.setWithPriority' , 2 , 3 , arguments . length ) ;
152
152
validateWritablePath ( 'Firebase.setWithPriority' , this . path ) ;
153
153
validateFirebaseDataArg ( 'Firebase.setWithPriority' , 1 , newVal , this . path , false ) ;
@@ -220,7 +220,7 @@ export class Reference extends Query {
220
220
* @param {function(?Error)= } opt_onComplete
221
221
* @return {!firebase.Promise }
222
222
*/
223
- setPriority ( priority , onComplete ?) {
223
+ setPriority ( priority , onComplete ?) : Promise < any > {
224
224
validateArgCount ( 'Firebase.setPriority' , 1 , 2 , arguments . length ) ;
225
225
validateWritablePath ( 'Firebase.setPriority' , this . path ) ;
226
226
validatePriority ( 'Firebase.setPriority' , 1 , priority , false ) ;
0 commit comments