We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c29156a commit 5cb6227Copy full SHA for 5cb6227
packages/firebase/compat/index.d.ts
@@ -5819,7 +5819,7 @@ declare namespace firebase.database {
5819
* returning true.
5820
*/
5821
forEach(
5822
- action: (a: firebase.database.IteratorDataSnapshot) => boolean | void
+ action: (a: firebase.database.IteratedDataSnapshot) => boolean | void
5823
): boolean;
5824
/**
5825
* Gets the priority value of the data in this `DataSnapshot`.
@@ -5998,6 +5998,10 @@ declare namespace firebase.database {
5998
toJSON(): Object | null;
5999
}
6000
6001
+ interface IteratedDataSnapshot extends DataSnapshot {
6002
+ key: string; // key of the location of this snapshot.
6003
+ }
6004
+
6005
6006
* The Firebase Database service interface.
6007
*
0 commit comments