Skip to content

Commit 87c407c

Browse files
committed
Updated formatting
1 parent 03606cc commit 87c407c

File tree

5 files changed

+6
-15
lines changed

5 files changed

+6
-15
lines changed

common/api-review/database.api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import { EmulatorMockTokenOptions } from '@firebase/util';
88
import { FirebaseApp } from '@firebase/app';
9+
import { _FirebaseService } from '@firebase/app';
910

1011
// @public
1112
export function child(parent: DatabaseReference, path: string): DatabaseReference;
@@ -16,7 +17,7 @@ export function connectDatabaseEmulator(db: Database, host: string, port: number
1617
}): void;
1718

1819
// @public
19-
export class Database {
20+
export class Database implements _FirebaseService {
2021
readonly app: FirebaseApp;
2122
readonly 'type' = "database";
2223
}

packages/database-compat/src/api/Reference.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ export class DataSnapshot implements Compat<ModularDataSnapshot> {
156156
return this._delegate.priority;
157157
}
158158

159-
160-
161159
/**
162160
* Iterates through child nodes and calls the specified action for each one.
163161
*
@@ -166,9 +164,7 @@ export class DataSnapshot implements Compat<ModularDataSnapshot> {
166164
* @returns True if forEach was canceled by action returning true for
167165
* one of the child nodes.
168166
*/
169-
forEach(
170-
action: (snapshot: IteratedDataSnapshot) => boolean | void
171-
): boolean {
167+
forEach(action: (snapshot: IteratedDataSnapshot) => boolean | void): boolean {
172168
validateArgCount('DataSnapshot.forEach', 1, 1, arguments.length);
173169
validateCallback('DataSnapshot.forEach', 'action', action, false);
174170
return this._delegate.forEach(expDataSnapshot =>

packages/database-types/index.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ export interface DataSnapshot {
2929
child(path: string): DataSnapshot;
3030
exists(): boolean;
3131
exportVal(): any;
32-
forEach(
33-
action: (a: IteratedDataSnapshot) => boolean | void
34-
): boolean;
32+
forEach(action: (a: IteratedDataSnapshot) => boolean | void): boolean;
3533
getPriority(): string | number | null;
3634
hasChild(path: string): boolean;
3735
hasChildren(): boolean;

packages/database/src/api/Reference_impl.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,7 @@ export class DataSnapshot {
393393
* @returns true if enumeration was canceled due to your callback returning
394394
* true.
395395
*/
396-
forEach(
397-
action: (child: IteratedDataSnapshot) => boolean | void
398-
): boolean {
396+
forEach(action: (child: IteratedDataSnapshot) => boolean | void): boolean {
399397
if (this._node.isLeafNode()) {
400398
return false;
401399
}

packages/firebase/compat/index.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5819,9 +5819,7 @@ declare namespace firebase.database {
58195819
* returning true.
58205820
*/
58215821
forEach(
5822-
action: (
5823-
a: firebase.database.IteratorDataSnapshot
5824-
) => boolean | void
5822+
action: (a: firebase.database.IteratorDataSnapshot) => boolean | void
58255823
): boolean;
58265824
/**
58275825
* Gets the priority value of the data in this `DataSnapshot`.

0 commit comments

Comments
 (0)