Skip to content

Commit 616037d

Browse files
sprmnhiranya911
authored andcommitted
Allow DataSnapshot.forEach to return void (#390)
Related to firebase/firebase-js-sdk#555
1 parent 6c7c326 commit 616037d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ declare namespace admin.database {
289289
child(path: string): admin.database.DataSnapshot;
290290
exists(): boolean;
291291
exportVal(): any;
292-
forEach(action: (a: admin.database.DataSnapshot) => boolean): boolean;
292+
forEach(action: (a: admin.database.DataSnapshot) => boolean | void): boolean;
293293
getPriority(): string|number|null;
294294
hasChild(path: string): boolean;
295295
hasChildren(): boolean;

0 commit comments

Comments
 (0)