File tree 3 files changed +18
-10
lines changed
3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,13 @@ export interface SnapshotMetadata {
52
52
isEqual ( other : SnapshotMetadata ) : boolean ;
53
53
}
54
54
55
- export type LogLevel = 'debug' | 'error' | 'silent' ;
55
+ export type LogLevel =
56
+ | 'debug'
57
+ | 'error'
58
+ | 'silent'
59
+ | 'warn'
60
+ | 'info'
61
+ | 'verbose' ;
56
62
57
63
export function setLogLevel ( logLevel : LogLevel ) : void ;
58
64
@@ -169,10 +175,7 @@ export class Transaction {
169
175
170
176
get < T > ( documentRef : DocumentReference < T > ) : Promise < DocumentSnapshot < T > > ;
171
177
172
- set < T > (
173
- documentRef : DocumentReference < T > ,
174
- data : T ,
175
- ) : Transaction ;
178
+ set < T > ( documentRef : DocumentReference < T > , data : T ) : Transaction ;
176
179
set < T > (
177
180
documentRef : DocumentReference < T > ,
178
181
data : Partial < T > ,
@@ -193,10 +196,7 @@ export class Transaction {
193
196
export class WriteBatch {
194
197
private constructor ( ) ;
195
198
196
- set < T > (
197
- documentRef : DocumentReference < T > ,
198
- data : T ,
199
- ) : WriteBatch ;
199
+ set < T > ( documentRef : DocumentReference < T > , data : T ) : WriteBatch ;
200
200
set < T > (
201
201
documentRef : DocumentReference < T > ,
202
202
data : Partial < T > ,
Original file line number Diff line number Diff line change @@ -33,7 +33,13 @@ export interface Settings {
33
33
ignoreUndefinedProperties ?: boolean ;
34
34
}
35
35
36
- export type LogLevel = 'debug' | 'error' | 'silent' ;
36
+ export type LogLevel =
37
+ | 'debug'
38
+ | 'error'
39
+ | 'silent'
40
+ | 'warn'
41
+ | 'info'
42
+ | 'verbose' ;
37
43
38
44
export function setLogLevel ( logLevel : LogLevel ) : void ;
39
45
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ export {
38
38
serverTimestamp
39
39
} from './src/api/field_value' ;
40
40
41
+ export { setLogLevel } from '../src/util/log' ;
42
+
41
43
export function registerFirestore ( ) : void {
42
44
_registerComponent (
43
45
new Component (
You can’t perform that action at this time.
0 commit comments