@@ -45,9 +45,9 @@ import { TargetData, TargetPurpose } from '../local/target_data';
4545import {
4646 DocumentKeySet ,
4747 documentKeySet ,
48- MaybeDocumentMap
48+ DocumentMap
4949} from '../model/collections' ;
50- import { MaybeDocument , NoDocument } from '../model/document' ;
50+ import { MutableDocument } from '../model/document' ;
5151import { DocumentKey } from '../model/document_key' ;
5252import { Mutation } from '../model/mutation' ;
5353import { MutationBatchResult } from '../model/mutation_batch' ;
@@ -161,7 +161,7 @@ class LimboResolution {
161161 */
162162type ApplyDocChangesHandler = (
163163 queryView : QueryView ,
164- changes : MaybeDocumentMap ,
164+ changes : DocumentMap ,
165165 remoteEvent ?: RemoteEvent
166166) => Promise < ViewSnapshot | undefined > ;
167167
@@ -618,12 +618,12 @@ export async function syncEngineRejectListen(
618618 // This is kind of a hack. Ideally, we would have a method in the local
619619 // store to purge a document. However, it would be tricky to keep all of
620620 // the local store's invariants with another method.
621- let documentUpdates = new SortedMap < DocumentKey , MaybeDocument > (
621+ let documentUpdates = new SortedMap < DocumentKey , MutableDocument > (
622622 DocumentKey . comparator
623623 ) ;
624624 documentUpdates = documentUpdates . insert (
625625 limboKey ,
626- new NoDocument ( limboKey , SnapshotVersion . min ( ) )
626+ MutableDocument . newNoDocument ( limboKey , SnapshotVersion . min ( ) )
627627 ) ;
628628 const resolvedLimboDocuments = documentKeySet ( ) . add ( limboKey ) ;
629629 const event = new RemoteEvent (
@@ -1001,7 +1001,7 @@ export function syncEngineGetEnqueuedLimboDocumentResolutions(
10011001
10021002export async function syncEngineEmitNewSnapsAndNotifyLocalStore (
10031003 syncEngine : SyncEngine ,
1004- changes : MaybeDocumentMap ,
1004+ changes : DocumentMap ,
10051005 remoteEvent ?: RemoteEvent
10061006) : Promise < void > {
10071007 const syncEngineImpl = debugCast ( syncEngine , SyncEngineImpl ) ;
@@ -1052,7 +1052,7 @@ export async function syncEngineEmitNewSnapsAndNotifyLocalStore(
10521052async function applyDocChanges (
10531053 syncEngineImpl : SyncEngineImpl ,
10541054 queryView : QueryView ,
1055- changes : MaybeDocumentMap ,
1055+ changes : DocumentMap ,
10561056 remoteEvent ?: RemoteEvent
10571057) : Promise < ViewSnapshot | undefined > {
10581058 let viewDocChanges = queryView . view . computeDocChanges ( changes ) ;
0 commit comments