Skip to content

Commit

Permalink
cherry-pick rtdb typing fixes from #7422
Browse files Browse the repository at this point in the history
  • Loading branch information
dconeybe committed Jul 6, 2023
1 parent c29156a commit 5cb6227
Showing 1 changed file with 5 additions and 1 deletion.
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 5cb6227

Please sign in to comment.