@@ -85,7 +85,7 @@ export class DataSnapshot implements Compat<ExpDataSnapshot> {
85
85
* Retrieves the snapshot contents as JSON. Returns null if the snapshot is
86
86
* empty.
87
87
*
88
- * @return JSON representation of the DataSnapshot contents, or null if empty.
88
+ * @returns JSON representation of the DataSnapshot contents, or null if empty.
89
89
*/
90
90
val ( ) : unknown {
91
91
validateArgCount ( 'DataSnapshot.val' , 0 , 0 , arguments . length ) ;
@@ -95,7 +95,7 @@ export class DataSnapshot implements Compat<ExpDataSnapshot> {
95
95
/**
96
96
* Returns the snapshot contents as JSON, including priorities of node. Suitable for exporting
97
97
* the entire node contents.
98
- * @return JSON representation of the DataSnapshot contents, or null if empty.
98
+ * @returns JSON representation of the DataSnapshot contents, or null if empty.
99
99
*/
100
100
exportVal ( ) : unknown {
101
101
validateArgCount ( 'DataSnapshot.exportVal' , 0 , 0 , arguments . length ) ;
@@ -113,7 +113,7 @@ export class DataSnapshot implements Compat<ExpDataSnapshot> {
113
113
/**
114
114
* Returns whether the snapshot contains a non-null value.
115
115
*
116
- * @return Whether the snapshot contains a non-null value, or is empty.
116
+ * @returns Whether the snapshot contains a non-null value, or is empty.
117
117
*/
118
118
exists ( ) : boolean {
119
119
validateArgCount ( 'DataSnapshot.exists' , 0 , 0 , arguments . length ) ;
@@ -124,7 +124,7 @@ export class DataSnapshot implements Compat<ExpDataSnapshot> {
124
124
* Returns a DataSnapshot of the specified child node's contents.
125
125
*
126
126
* @param path Path to a child.
127
- * @return DataSnapshot for child node.
127
+ * @returns DataSnapshot for child node.
128
128
*/
129
129
child ( path : string ) : DataSnapshot {
130
130
validateArgCount ( 'DataSnapshot.child' , 0 , 1 , arguments . length ) ;
@@ -138,7 +138,7 @@ export class DataSnapshot implements Compat<ExpDataSnapshot> {
138
138
* Returns whether the snapshot contains a child at the specified path.
139
139
*
140
140
* @param path Path to a child.
141
- * @return Whether the child exists.
141
+ * @returns Whether the child exists.
142
142
*/
143
143
hasChild ( path : string ) : boolean {
144
144
validateArgCount ( 'DataSnapshot.hasChild' , 1 , 1 , arguments . length ) ;
@@ -149,7 +149,7 @@ export class DataSnapshot implements Compat<ExpDataSnapshot> {
149
149
/**
150
150
* Returns the priority of the object, or null if no priority was set.
151
151
*
152
- * @return The priority.
152
+ * @returns The priority.
153
153
*/
154
154
getPriority ( ) : string | number | null {
155
155
validateArgCount ( 'DataSnapshot.getPriority' , 0 , 0 , arguments . length ) ;
@@ -161,7 +161,7 @@ export class DataSnapshot implements Compat<ExpDataSnapshot> {
161
161
*
162
162
* @param action Callback function to be called
163
163
* for each child.
164
- * @return True if forEach was canceled by action returning true for
164
+ * @returns True if forEach was canceled by action returning true for
165
165
* one of the child nodes.
166
166
*/
167
167
forEach ( action : ( snapshot : DataSnapshot ) => boolean | void ) : boolean {
@@ -174,7 +174,7 @@ export class DataSnapshot implements Compat<ExpDataSnapshot> {
174
174
175
175
/**
176
176
* Returns whether this DataSnapshot has children.
177
- * @return True if the DataSnapshot contains 1 or more child nodes.
177
+ * @returns True if the DataSnapshot contains 1 or more child nodes.
178
178
*/
179
179
hasChildren ( ) : boolean {
180
180
validateArgCount ( 'DataSnapshot.hasChildren' , 0 , 0 , arguments . length ) ;
@@ -187,15 +187,15 @@ export class DataSnapshot implements Compat<ExpDataSnapshot> {
187
187
188
188
/**
189
189
* Returns the number of children for this DataSnapshot.
190
- * @return The number of children that this DataSnapshot contains.
190
+ * @returns The number of children that this DataSnapshot contains.
191
191
*/
192
192
numChildren ( ) : number {
193
193
validateArgCount ( 'DataSnapshot.numChildren' , 0 , 0 , arguments . length ) ;
194
194
return this . _delegate . size ;
195
195
}
196
196
197
197
/**
198
- * @return The Firebase reference for the location this snapshot's data came
198
+ * @returns The Firebase reference for the location this snapshot's data came
199
199
* from.
200
200
*/
201
201
getRef ( ) : Reference {
@@ -472,7 +472,7 @@ export class Query implements Compat<QueryImpl> {
472
472
}
473
473
474
474
/**
475
- * @return URL for this location.
475
+ * @returns URL for this location.
476
476
*/
477
477
toString ( ) : string {
478
478
validateArgCount ( 'Query.toString' , 0 , 0 , arguments . length ) ;
@@ -563,7 +563,7 @@ export class Reference extends Query implements Compat<ReferenceImpl> {
563
563
) ;
564
564
}
565
565
566
- /** @return {?string } */
566
+ /** @returns {?string } */
567
567
getKey ( ) : string | null {
568
568
validateArgCount ( 'Reference.key' , 0 , 0 , arguments . length ) ;
569
569
return this . _delegate . key ;
@@ -577,14 +577,14 @@ export class Reference extends Query implements Compat<ReferenceImpl> {
577
577
return new Reference ( this . database , child ( this . _delegate , pathString ) ) ;
578
578
}
579
579
580
- /** @return {?Reference } */
580
+ /** @returns {?Reference } */
581
581
getParent ( ) : Reference | null {
582
582
validateArgCount ( 'Reference.parent' , 0 , 0 , arguments . length ) ;
583
583
const parent = this . _delegate . parent ;
584
584
return parent ? new Reference ( this . database , parent ) : null ;
585
585
}
586
586
587
- /** @return {!Reference } */
587
+ /** @returns {!Reference } */
588
588
getRoot ( ) : Reference {
589
589
validateArgCount ( 'Reference.root' , 0 , 0 , arguments . length ) ;
590
590
return new Reference ( this . database , this . _delegate . root ) ;
0 commit comments