@firebase/database-types 0.9.6 → 0.9.7-canary.44948ac91

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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @firebase/database-types
2
2
 
3
+ ## 0.9.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1c37b5e96`](https://github.com/firebase/firebase-js-sdk/commit/1c37b5e965978d796c46ff6b9f52051cf6070751) [#6090](https://github.com/firebase/firebase-js-sdk/pull/6090) (fixes [#6071](https://github.com/firebase/firebase-js-sdk/issues/6071)) - Updated typings for Reference methods
8
+
9
+ - Updated dependencies [[`e9e5f6b3c`](https://github.com/firebase/firebase-js-sdk/commit/e9e5f6b3ca9d61323b22f87986d9959f5297ec59)]:
10
+ - @firebase/util@1.5.2
11
+
3
12
  ## 0.9.6
4
13
 
5
14
  ### Patch Changes
package/index.d.ts CHANGED
@@ -125,24 +125,24 @@ export interface Reference extends Query {
125
125
  onDisconnect(): OnDisconnect;
126
126
  parent: Reference | null;
127
127
  push(value?: any, onComplete?: (a: Error | null) => any): ThenableReference;
128
- remove(onComplete?: (a: Error | null) => any): Promise<any>;
128
+ remove(onComplete?: (a: Error | null) => void): Promise<void>;
129
129
  root: Reference;
130
- set(value: any, onComplete?: (a: Error | null) => any): Promise<any>;
130
+ set(value: any, onComplete?: (a: Error | null) => void): Promise<void>;
131
131
  setPriority(
132
132
  priority: string | number | null,
133
- onComplete: (a: Error | null) => any
134
- ): Promise<any>;
133
+ onComplete: (a: Error | null) => void
134
+ ): Promise<void>;
135
135
  setWithPriority(
136
136
  newVal: any,
137
137
  newPriority: string | number | null,
138
- onComplete?: (a: Error | null) => any
139
- ): Promise<any>;
138
+ onComplete?: (a: Error | null) => void
139
+ ): Promise<void>;
140
140
  transaction(
141
141
  transactionUpdate: (a: any) => any,
142
- onComplete?: (a: Error | null, b: boolean, c: DataSnapshot | null) => any,
142
+ onComplete?: (a: Error | null, b: boolean, c: DataSnapshot | null) => void,
143
143
  applyLocally?: boolean
144
- ): Promise<any>;
145
- update(values: Object, onComplete?: (a: Error | null) => any): Promise<any>;
144
+ ): Promise<TransactionResult>;
145
+ update(values: Object, onComplete?: (a: Error | null) => void): Promise<void>;
146
146
  }
147
147
 
148
148
  export interface ServerValue {
@@ -150,6 +150,11 @@ export interface ServerValue {
150
150
  increment(delta: number): Object;
151
151
  }
152
152
 
153
+ export interface TransactionResult {
154
+ committed: boolean;
155
+ snapshot: DataSnapshot;
156
+ }
157
+
153
158
  export interface ThenableReference
154
159
  extends Reference,
155
160
  Pick<Promise<Reference>, 'then' | 'catch'> {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/database-types",
3
- "version": "0.9.6",
3
+ "version": "0.9.7-canary.44948ac91",
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,8 @@
12
12
  "index.d.ts"
13
13
  ],
14
14
  "dependencies": {
15
- "@firebase/app-types": "0.7.0",
16
- "@firebase/util": "1.5.1"
15
+ "@firebase/app-types": "0.7.0-canary.44948ac91",
16
+ "@firebase/util": "1.5.2-canary.44948ac91"
17
17
  },
18
18
  "repository": {
19
19
  "directory": "packages/database-types",