File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,11 @@ export class DataSnapshot implements Compat<ModularDataSnapshot> {
208
208
}
209
209
}
210
210
211
+ /**
212
+ * Represents a child snapshot of a `Reference` that is being iterated over. The key will never be undefined.
213
+ */
211
214
export interface IteratedDataSnapshot extends DataSnapshot {
212
- key : string ;
215
+ key : string ; // key of the location of this snapshot.
213
216
}
214
217
215
218
export interface SnapshotCallback {
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ import { FirebaseApp } from '@firebase/app-types';
19
19
import { EmulatorMockTokenOptions } from '@firebase/util' ;
20
20
21
21
/**
22
- * Represents a child snapshot of an iterated `Reference`. The key will never be undefined.
22
+ * Represents a child snapshot of a `Reference` that is being iterated over . The key will never be undefined.
23
23
*/
24
24
export interface IteratedDataSnapshot extends DataSnapshot {
25
- key : string ;
25
+ key : string ; // key of the location of this snapshot.
26
26
}
27
27
28
28
export interface DataSnapshot {
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ export class DataSnapshot {
376
376
}
377
377
378
378
/**
379
- * Enumerates the top-level children in the `IteratorDataSnapshot `.
379
+ * Enumerates the top-level children in the `IteratedDataSnapshot `.
380
380
*
381
381
* Because of the way JavaScript objects work, the ordering of data in the
382
382
* JavaScript object returned by `val()` is not guaranteed to match the
@@ -464,10 +464,10 @@ export class DataSnapshot {
464
464
}
465
465
466
466
/**
467
- * Represents a child snapshot of an iterated `Reference`. The key will never be undefined.
467
+ * Represents a child snapshot of a `Reference` that is being iterated over . The key will never be undefined.
468
468
*/
469
469
export interface IteratedDataSnapshot extends DataSnapshot {
470
- key : string ;
470
+ key : string ; // key of the location of this snapshot.
471
471
}
472
472
473
473
/**
You can’t perform that action at this time.
0 commit comments