Skip to content

Commit

Permalink
Fix RTDB typings used by compat (#7422)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed Jul 6, 2023
1 parent 794441e commit f3067f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/soft-grapes-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'firebase': patch
---

Fix typings for v10
6 changes: 5 additions & 1 deletion packages/firebase/compat/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5819,7 +5819,7 @@ declare namespace firebase.database {
* returning true.
*/
forEach(
action: (a: firebase.database.IteratorDataSnapshot) => boolean | void
action: (a: firebase.database.IteratedDataSnapshot) => boolean | void
): boolean;
/**
* Gets the priority value of the data in this `DataSnapshot`.
Expand Down Expand Up @@ -5998,6 +5998,10 @@ declare namespace firebase.database {
toJSON(): Object | null;
}

interface IteratedDataSnapshot extends DataSnapshot {
key: string; // key of the location of this snapshot.
}

/**
* The Firebase Database service interface.
*
Expand Down

0 comments on commit f3067f7

Please sign in to comment.