@@ -58,6 +58,8 @@ export interface PrivateSettings extends Settings {
5858 experimentalForceLongPolling ?: boolean ;
5959 // Used in firestore@exp
6060 experimentalAutoDetectLongPolling ?: boolean ;
61+ // Used in firestore@exp
62+ useFetchStreams ?: boolean ;
6163}
6264
6365/**
@@ -80,6 +82,8 @@ export class FirestoreSettings {
8082
8183 readonly ignoreUndefinedProperties : boolean ;
8284
85+ readonly useFetchStreams : boolean ;
86+
8387 // Can be a google-auth-library or gapi client.
8488 // eslint-disable-next-line @typescript-eslint/no-explicit-any
8589 credentials ?: any ;
@@ -120,6 +124,7 @@ export class FirestoreSettings {
120124
121125 this . experimentalForceLongPolling = ! ! settings . experimentalForceLongPolling ;
122126 this . experimentalAutoDetectLongPolling = ! ! settings . experimentalAutoDetectLongPolling ;
127+ this . useFetchStreams = ! ! settings . useFetchStreams ;
123128
124129 validateIsNotUsedTogether (
125130 'experimentalForceLongPolling' ,
@@ -139,7 +144,8 @@ export class FirestoreSettings {
139144 other . experimentalForceLongPolling &&
140145 this . experimentalAutoDetectLongPolling ===
141146 other . experimentalAutoDetectLongPolling &&
142- this . ignoreUndefinedProperties === other . ignoreUndefinedProperties
147+ this . ignoreUndefinedProperties === other . ignoreUndefinedProperties &&
148+ this . useFetchStreams === other . useFetchStreams
143149 ) ;
144150 }
145151}
0 commit comments