Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit a5fcb63

Browse files
committed
[chore] - White space
1 parent 1409b25 commit a5fcb63

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/firebase.d.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,24 +546,34 @@ export interface OnDisconnect {
546546

547547
update(values: Object): Promise<any>;
548548
}
549+
549550
// WebAPI Query
550551
export interface Query {
551552
on(eventType: string, callback: (a: any, b?: string) => any): Promise<any>;
553+
552554
once(eventType: string): Promise<DataSnapshot>;
555+
553556
off(eventType?: string, callback?: (a: DataSnapshot, b?: string | null) => any, context?: Object | null): void;
557+
554558
orderByChild(value: string): Query;
559+
555560
orderByKey(): Query;
561+
556562
orderByPriority(): Query;
563+
557564
orderByValue(): Query;
565+
558566
equalTo(value: string | number | boolean, key?: string): Query;
567+
559568
startAt(value: string | number | boolean, key?: string): Query;
569+
560570
endAt(value: string | number | boolean, key?: string): Query;
571+
561572
limitToFirst(value: number): Query;
573+
562574
limitToLast(value: number): Query;
563575
}
564576

565-
export function webQuery(path: string): Query;
566-
567577
export interface DataSnapshot {
568578
key: string;
569579
ref: any; // TODO: Type it so that it returns a databaseReference.
@@ -615,6 +625,8 @@ export function removeEventListeners(listeners: Array<any>, path: string): Promi
615625

616626
export function onDisconnect(path: string): OnDisconnect;
617627

628+
export function webQuery(path: string): Query;
629+
618630
export function enableLogging(logger?: boolean | ((a: string) => any), persistent?: boolean);
619631

620632
/**

0 commit comments

Comments
 (0)