@firebase/database 0.14.4 → 1.0.0-20230706224113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -321,7 +321,7 @@ export declare class DataSnapshot {
321
321
  */
322
322
  exportVal(): any;
323
323
  /**
324
- * Enumerates the top-level children in the `DataSnapshot`.
324
+ * Enumerates the top-level children in the `IteratedDataSnapshot`.
325
325
  *
326
326
  * Because of the way JavaScript objects work, the ordering of data in the
327
327
  * JavaScript object returned by `val()` is not guaranteed to match the
@@ -338,7 +338,7 @@ export declare class DataSnapshot {
338
338
  * @returns true if enumeration was canceled due to your callback returning
339
339
  * true.
340
340
  */
341
- forEach(action: (child: DataSnapshot) => boolean | void): boolean;
341
+ forEach(action: (child: IteratedDataSnapshot) => boolean | void): boolean;
342
342
  /**
343
343
  * Returns true if the specified child path has (non-null) data.
344
344
  *
@@ -764,6 +764,13 @@ declare abstract class Index {
764
764
  abstract toString(): string;
765
765
  }
766
766
 
767
+ /**
768
+ * Represents a child snapshot of a `Reference` that is being iterated over. The key will never be undefined.
769
+ */
770
+ export declare interface IteratedDataSnapshot extends DataSnapshot {
771
+ key: string;
772
+ }
773
+
767
774
  /**
768
775
  * Creates a new `QueryConstraint` that if limited to the first specific number
769
776
  * of children.
@@ -1251,7 +1251,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
1251
1251
  WebSocketConnection.healthyTimeout = 30000;
1252
1252
 
1253
1253
  const name = "@firebase/database";
1254
- const version = "0.14.4";
1254
+ const version = "1.0.0-20230706224113";
1255
1255
 
1256
1256
  /**
1257
1257
  * @license
@@ -12447,7 +12447,7 @@ class DataSnapshot {
12447
12447
  return this._node.val(true);
12448
12448
  }
12449
12449
  /**
12450
- * Enumerates the top-level children in the `DataSnapshot`.
12450
+ * Enumerates the top-level children in the `IteratedDataSnapshot`.
12451
12451
  *
12452
12452
  * Because of the way JavaScript objects work, the ordering of data in the
12453
12453
  * JavaScript object returned by `val()` is not guaranteed to match the