Skip to content

Commit eccfed7

Browse files
committed
update database type names
1 parent 6564e99 commit eccfed7

File tree

7 files changed

+26
-432
lines changed

7 files changed

+26
-432
lines changed

common/api-review/database-exp.api.md

Lines changed: 0 additions & 235 deletions
This file was deleted.

common/api-review/database.api.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ import { FirebaseApp } from '@firebase/app';
1010
// @public
1111
export function child(parent: Reference, path: string): Reference;
1212

13+
// @public
14+
export class Database {
15+
readonly app: FirebaseApp;
16+
readonly 'type' = "database";
17+
}
18+
1319
// @public
1420
export class DataSnapshot {
1521
child(path: string): DataSnapshot;
@@ -44,23 +50,17 @@ export function equalTo(value: number | string | boolean | null, key?: string):
4450
// @public
4551
export type EventType = 'value' | 'child_added' | 'child_changed' | 'child_moved' | 'child_removed';
4652

47-
// @public
48-
export class FirebaseDatabase {
49-
readonly app: FirebaseApp;
50-
readonly 'type' = "database";
51-
}
52-
5353
// @public
5454
export function get(query: Query): Promise<DataSnapshot>;
5555

5656
// @public
57-
export function getDatabase(app?: FirebaseApp, url?: string): FirebaseDatabase;
57+
export function getDatabase(app?: FirebaseApp, url?: string): Database;
5858

5959
// @public
60-
export function goOffline(db: FirebaseDatabase): void;
60+
export function goOffline(db: Database): void;
6161

6262
// @public
63-
export function goOnline(db: FirebaseDatabase): void;
63+
export function goOnline(db: Database): void;
6464

6565
// @public
6666
export function increment(delta: number): object;
@@ -171,7 +171,7 @@ export abstract class QueryConstraint {
171171
export type QueryConstraintType = 'endAt' | 'endBefore' | 'startAt' | 'startAfter' | 'limitToFirst' | 'limitToLast' | 'orderByChild' | 'orderByKey' | 'orderByPriority' | 'orderByValue' | 'equalTo';
172172

173173
// @public
174-
export function ref(db: FirebaseDatabase, path?: string): Reference;
174+
export function ref(db: Database, path?: string): Reference;
175175

176176
// @public
177177
export interface Reference extends Query {
@@ -181,7 +181,7 @@ export interface Reference extends Query {
181181
}
182182

183183
// @public
184-
export function refFromURL(db: FirebaseDatabase, url: string): Reference;
184+
export function refFromURL(db: Database, url: string): Reference;
185185

186186
// @public
187187
export function remove(ref: Reference): Promise<void>;
@@ -230,7 +230,7 @@ export type Unsubscribe = () => void;
230230
export function update(ref: Reference, values: object): Promise<void>;
231231

232232
// @public
233-
export function useDatabaseEmulator(db: FirebaseDatabase, host: string, port: number, options?: {
233+
export function useDatabaseEmulator(db: Database, host: string, port: number, options?: {
234234
mockUserToken?: EmulatorMockTokenOptions;
235235
}): void;
236236

0 commit comments

Comments
 (0)