Skip to content

Commit 39a4aa0

Browse files
Merge 91bb822 into 5c41eab
2 parents 5c41eab + 91bb822 commit 39a4aa0

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

packages/firestore/exp/index.d.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ export interface SnapshotMetadata {
5252
isEqual(other: SnapshotMetadata): boolean;
5353
}
5454

55-
export type LogLevel = 'debug' | 'error' | 'silent';
55+
export type LogLevel =
56+
| 'debug'
57+
| 'error'
58+
| 'silent'
59+
| 'warn'
60+
| 'info'
61+
| 'verbose';
5662

5763
export function setLogLevel(logLevel: LogLevel): void;
5864

@@ -169,10 +175,7 @@ export class Transaction {
169175

170176
get<T>(documentRef: DocumentReference<T>): Promise<DocumentSnapshot<T>>;
171177

172-
set<T>(
173-
documentRef: DocumentReference<T>,
174-
data: T,
175-
): Transaction;
178+
set<T>(documentRef: DocumentReference<T>, data: T): Transaction;
176179
set<T>(
177180
documentRef: DocumentReference<T>,
178181
data: Partial<T>,
@@ -193,10 +196,7 @@ export class Transaction {
193196
export class WriteBatch {
194197
private constructor();
195198

196-
set<T>(
197-
documentRef: DocumentReference<T>,
198-
data: T,
199-
): WriteBatch;
199+
set<T>(documentRef: DocumentReference<T>, data: T): WriteBatch;
200200
set<T>(
201201
documentRef: DocumentReference<T>,
202202
data: Partial<T>,

packages/firestore/lite/index.d.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ export interface Settings {
3333
ignoreUndefinedProperties?: boolean;
3434
}
3535

36-
export type LogLevel = 'debug' | 'error' | 'silent';
36+
export type LogLevel =
37+
| 'debug'
38+
| 'error'
39+
| 'silent'
40+
| 'warn'
41+
| 'info'
42+
| 'verbose';
3743

3844
export function setLogLevel(logLevel: LogLevel): void;
3945

packages/firestore/lite/index.node.ts

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ export {
3838
serverTimestamp
3939
} from './src/api/field_value';
4040

41+
export { setLogLevel } from '../src/util/log';
42+
4143
export function registerFirestore(): void {
4244
_registerComponent(
4345
new Component(

0 commit comments

Comments
 (0)