Skip to content

Commit f3afac4

Browse files
committed
Correct the argument types of the forEach function
1 parent e9efdd3 commit f3afac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class DeltaSnapshot implements firebase.database.DataSnapshot {
207207
}
208208

209209
// TODO(inlined) what is this boolean for?
210-
forEach(action: (a: DeltaSnapshot) => boolean): boolean {
210+
forEach(action: (a: DeltaSnapshot) => void): boolean {
211211
let val = this.val();
212212
if (_.isPlainObject(val)) {
213213
_.keys(val).forEach(key => action(this.child(key)));

0 commit comments

Comments
 (0)