Skip to content

Commit f3067f7

Browse files
authored
Fix RTDB typings used by compat (#7422)
1 parent 794441e commit f3067f7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.changeset/soft-grapes-occur.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'firebase': patch
3+
---
4+
5+
Fix typings for v10

packages/firebase/compat/index.d.ts

+5-1
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)