Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5cb6227

Browse files
committedJul 6, 2023
cherry-pick rtdb typing fixes from #7422
1 parent c29156a commit 5cb6227

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎packages/firebase/compat/index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5819,7 +5819,7 @@ declare namespace firebase.database {
58195819
* returning true.
58205820
*/
58215821
forEach(
5822-
action: (a: firebase.database.IteratorDataSnapshot) => boolean | void
5822+
action: (a: firebase.database.IteratedDataSnapshot) => boolean | void
58235823
): boolean;
58245824
/**
58255825
* Gets the priority value of the data in this `DataSnapshot`.
@@ -5998,6 +5998,10 @@ declare namespace firebase.database {
59985998
toJSON(): Object | null;
59995999
}
60006000

6001+
interface IteratedDataSnapshot extends DataSnapshot {
6002+
key: string; // key of the location of this snapshot.
6003+
}
6004+
60016005
/**
60026006
* The Firebase Database service interface.
60036007
*

0 commit comments

Comments
 (0)
Please sign in to comment.