File tree 4 files changed +10
-3
lines changed 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -209,10 +209,12 @@ export class DataSnapshot implements Compat<ModularDataSnapshot> {
209
209
}
210
210
211
211
/**
212
- * Represents a child snapshot of a `Reference` that is being iterated over. The key will never be undefined.
212
+ * Represents a child snapshot of a `Reference` that is being iterated over. The
213
+ * key and parent will never be undefined.
213
214
*/
214
215
export interface IteratedDataSnapshot extends DataSnapshot {
215
216
key : string ; // key of the location of this snapshot.
217
+ parent : Reference ;
216
218
}
217
219
218
220
export interface SnapshotCallback {
Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ import { FirebaseApp } from '@firebase/app-types';
19
19
import { EmulatorMockTokenOptions } from '@firebase/util' ;
20
20
21
21
/**
22
- * Represents a child snapshot of a `Reference` that is being iterated over. The key will never be undefined.
22
+ * Represents a child snapshot of a `Reference` that is being iterated over. The
23
+ * key and parent will never be undefined.
23
24
*/
24
25
export interface IteratedDataSnapshot extends DataSnapshot {
25
26
key : string ; // key of the location of this snapshot.
27
+ parent : Reference ;
26
28
}
27
29
28
30
export interface DataSnapshot {
Original file line number Diff line number Diff line change @@ -464,10 +464,12 @@ export class DataSnapshot {
464
464
}
465
465
466
466
/**
467
- * Represents a child snapshot of a `Reference` that is being iterated over. The key will never be undefined.
467
+ * Represents a child snapshot of a `Reference` that is being iterated over. The
468
+ * key and parent will never be undefined.
468
469
*/
469
470
export interface IteratedDataSnapshot extends DataSnapshot {
470
471
key : string ; // key of the location of this snapshot.
472
+ parent : DatabaseReference ;
471
473
}
472
474
473
475
/**
Original file line number Diff line number Diff line change @@ -6001,6 +6001,7 @@ declare namespace firebase.database {
6001
6001
6002
6002
interface IteratedDataSnapshot extends DataSnapshot {
6003
6003
key : string ; // key of the location of this snapshot.
6004
+ parent : Reference ;
6004
6005
}
6005
6006
6006
6007
/**
You can’t perform that action at this time.
0 commit comments