Skip to content

Commit bbfa750

Browse files
[AUTOMATED]: Prettier Code Styling
1 parent 4b4f2bc commit bbfa750

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

packages/database/src/api/Query.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,11 @@ export class Query {
264264
* @param {(function(!DataSnapshot, ?string=))=} callback
265265
* @param {Object=} context
266266
*/
267-
off(eventType?: string, callback?: SnapshotCallback, context?: Object | null): void {
267+
off(
268+
eventType?: string,
269+
callback?: SnapshotCallback,
270+
context?: Object | null
271+
): void {
268272
validateArgCount('Query.off', 0, 3, arguments.length);
269273
validateEventType('Query.off', 1, eventType, true);
270274
validateCallback('Query.off', 2, callback, true);
@@ -309,7 +313,7 @@ export class Query {
309313

310314
const ret = Query.getCancelAndContextArgs_(
311315
'Query.once',
312-
failureCallbackOrContext,
316+
failureCallbackOrContext,
313317
context
314318
);
315319

packages/firebase/index.d.ts

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4399,7 +4399,9 @@ declare namespace firebase.database {
43994399
* ```
44004400
*
44014401
* @param eventType One of the following strings: "value",
4402-
* "child_added", "child_changed", "child_removed", or "child_moved."
4402+
* "child_added", "child_changed", "child_removed", or "child_moved." If
4403+
* no eventType is specified, all callbacks for the `Reference` will be
4404+
* removed.
44034405
* @param callback The
44044406
* callback function that was passed to `on()`.
44054407
* @param context The context that was passed to `on()`.
@@ -4524,7 +4526,10 @@ declare namespace firebase.database {
45244526
*/
45254527
on(
45264528
eventType: EventType,
4527-
callback: (a: firebase.database.DataSnapshot | null, b?: string | null) => any,
4529+
callback: (
4530+
a: firebase.database.DataSnapshot,
4531+
b?: string | null
4532+
) => any,
45284533
cancelCallbackOrContext?: Object | null,
45294534
context?: Object | null
45304535
): (a: firebase.database.DataSnapshot | null, b?: string | null) => any;
@@ -4564,10 +4569,10 @@ declare namespace firebase.database {
45644569
*/
45654570
once(
45664571
eventType: EventType,
4567-
successCallback?: (a: DataSnapshot, b?: string | null) => any,
4568-
cancelCallbackOrContext?: ((a: Error) => void) | Object | null,
4572+
successCallback?: (a: firebase.database.DataSnapshot, b?: string | null) => any,
4573+
failureCallbackOrContext?: ((a: Error) => void) | Object | null,
45694574
context?: Object | null
4570-
): Promise<DataSnapshot>;
4575+
): Promise<firebase.database.DataSnapshot>;
45714576
/**
45724577
* Generates a new `Query` object ordered by the specified child key.
45734578
*

0 commit comments

Comments
 (0)