@@ -10,6 +10,12 @@ import { FirebaseApp } from '@firebase/app';
10
10
// @public
11
11
export function child(parent : Reference , path : string ): Reference ;
12
12
13
+ // @public
14
+ export class Database {
15
+ readonly app: FirebaseApp ;
16
+ readonly ' type' = " database" ;
17
+ }
18
+
13
19
// @public
14
20
export class DataSnapshot {
15
21
child(path : string ): DataSnapshot ;
@@ -44,23 +50,17 @@ export function equalTo(value: number | string | boolean | null, key?: string):
44
50
// @public
45
51
export type EventType = ' value' | ' child_added' | ' child_changed' | ' child_moved' | ' child_removed' ;
46
52
47
- // @public
48
- export class FirebaseDatabase {
49
- readonly app: FirebaseApp ;
50
- readonly ' type' = " database" ;
51
- }
52
-
53
53
// @public
54
54
export function get(query : Query ): Promise <DataSnapshot >;
55
55
56
56
// @public
57
- export function getDatabase(app ? : FirebaseApp , url ? : string ): FirebaseDatabase ;
57
+ export function getDatabase(app ? : FirebaseApp , url ? : string ): Database ;
58
58
59
59
// @public
60
- export function goOffline(db : FirebaseDatabase ): void ;
60
+ export function goOffline(db : Database ): void ;
61
61
62
62
// @public
63
- export function goOnline(db : FirebaseDatabase ): void ;
63
+ export function goOnline(db : Database ): void ;
64
64
65
65
// @public
66
66
export function increment(delta : number ): object ;
@@ -171,7 +171,7 @@ export abstract class QueryConstraint {
171
171
export type QueryConstraintType = ' endAt' | ' endBefore' | ' startAt' | ' startAfter' | ' limitToFirst' | ' limitToLast' | ' orderByChild' | ' orderByKey' | ' orderByPriority' | ' orderByValue' | ' equalTo' ;
172
172
173
173
// @public
174
- export function ref(db : FirebaseDatabase , path ? : string ): Reference ;
174
+ export function ref(db : Database , path ? : string ): Reference ;
175
175
176
176
// @public
177
177
export interface Reference extends Query {
@@ -181,7 +181,7 @@ export interface Reference extends Query {
181
181
}
182
182
183
183
// @public
184
- export function refFromURL(db : FirebaseDatabase , url : string ): Reference ;
184
+ export function refFromURL(db : Database , url : string ): Reference ;
185
185
186
186
// @public
187
187
export function remove(ref : Reference ): Promise <void >;
@@ -230,7 +230,7 @@ export type Unsubscribe = () => void;
230
230
export function update(ref : Reference , values : object ): Promise <void >;
231
231
232
232
// @public
233
- export function useDatabaseEmulator(db : FirebaseDatabase , host : string , port : number , options ? : {
233
+ export function useDatabaseEmulator(db : Database , host : string , port : number , options ? : {
234
234
mockUserToken? : EmulatorMockTokenOptions ;
235
235
}): void ;
236
236
0 commit comments