Skip to content

Commit f501fff

Browse files
authored
fix(firestore, types): make all Settings properties optional (#4965)
This matches the optional typing of all Settings members in firebase-js-sdk
1 parent bc893ab commit f501fff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/firestore/lib/index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ export namespace FirebaseFirestoreTypes {
13941394
/**
13951395
* Enables or disables local persistent storage.
13961396
*/
1397-
persistence: boolean;
1397+
persistence?: boolean;
13981398

13991399
/**
14001400
* An approximate cache size threshold for the on-disk data. If the cache grows beyond this size, Firestore will start
@@ -1403,7 +1403,7 @@ export namespace FirebaseFirestoreTypes {
14031403
*
14041404
* To disable garbage collection and set an unlimited cache size, use `firebase.firestore.CACHE_SIZE_UNLIMITED`.
14051405
*/
1406-
cacheSizeBytes: number;
1406+
cacheSizeBytes?: number;
14071407

14081408
/**
14091409
* The hostname to connect to.
@@ -1413,12 +1413,12 @@ export namespace FirebaseFirestoreTypes {
14131413
* If you want to use the emulator on a real android device, you will need to specify the actual host
14141414
* computer IP address.
14151415
*/
1416-
host: string;
1416+
host?: string;
14171417

14181418
/**
14191419
* Whether to use SSL when connecting.
14201420
*/
1421-
ssl: boolean;
1421+
ssl?: boolean;
14221422
}
14231423

14241424
/**

0 commit comments

Comments
 (0)