@firebase/database-types 0.7.3-canary.f35b4e3a4 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +2 -15
- package/package.json +2 -3
package/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
import { FirebaseApp } from '@firebase/app-types';
|
|
19
|
-
import { EmulatorMockTokenOptions } from '@firebase/util';
|
|
20
19
|
|
|
21
20
|
export interface DataSnapshot {
|
|
22
21
|
child(path: string): DataSnapshot;
|
|
@@ -35,13 +34,7 @@ export interface DataSnapshot {
|
|
|
35
34
|
|
|
36
35
|
export interface Database {
|
|
37
36
|
app: FirebaseApp;
|
|
38
|
-
useEmulator(
|
|
39
|
-
host: string,
|
|
40
|
-
port: number,
|
|
41
|
-
options?: {
|
|
42
|
-
mockUserToken?: EmulatorMockTokenOptions | string;
|
|
43
|
-
}
|
|
44
|
-
): void;
|
|
37
|
+
useEmulator(host: string, port: number): void;
|
|
45
38
|
goOffline(): void;
|
|
46
39
|
goOnline(): void;
|
|
47
40
|
ref(path?: string | Reference): Reference;
|
|
@@ -51,13 +44,7 @@ export interface Database {
|
|
|
51
44
|
export class FirebaseDatabase implements Database {
|
|
52
45
|
private constructor();
|
|
53
46
|
app: FirebaseApp;
|
|
54
|
-
useEmulator(
|
|
55
|
-
host: string,
|
|
56
|
-
port: number,
|
|
57
|
-
options?: {
|
|
58
|
-
mockUserToken?: EmulatorMockTokenOptions | string;
|
|
59
|
-
}
|
|
60
|
-
): void;
|
|
47
|
+
useEmulator(host: string, port: number): void;
|
|
61
48
|
goOffline(): void;
|
|
62
49
|
goOnline(): void;
|
|
63
50
|
ref(path?: string | Reference): Reference;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/database-types",
|
|
3
|
-
"version": "0.7.3
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "@firebase/database Types",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"index.d.ts"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@firebase/app-types": "0.6.3
|
|
16
|
-
"@firebase/util": "1.2.0-canary.f35b4e3a4"
|
|
15
|
+
"@firebase/app-types": "0.6.3"
|
|
17
16
|
},
|
|
18
17
|
"repository": {
|
|
19
18
|
"directory": "packages/database-types",
|