Skip to content

Bug in database.d.ts #1516

Closed
Closed
@sebastianrueckerai

Description

@sebastianrueckerai

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch firebase-functions@4.6.0 for the project I'm working on.

You can find details about the issue here
#1496

Here is the diff that solved my problem:

diff --git a/node_modules/firebase-functions/lib/common/providers/database.d.ts b/node_modules/firebase-functions/lib/common/providers/database.d.ts
index fe660d1..1d40471 100644
--- a/node_modules/firebase-functions/lib/common/providers/database.d.ts
+++ b/node_modules/firebase-functions/lib/common/providers/database.d.ts
@@ -97,7 +97,7 @@ export declare class DataSnapshot implements database.DataSnapshot {
      * @return `true` if enumeration was canceled due to your callback
      *   returning `true`.
      */
-    forEach(action: (a: DataSnapshot) => boolean | void): boolean;
+    forEach(action: (a: any) => boolean | void): boolean;
     /**
      * Returns `true` if the specified child path has (non-`null`) data.
      *

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions