Skip to content

Commit 9ca74ee

Browse files
Fix Firestore build (#5829)
1 parent 9295bb0 commit 9ca74ee

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

packages/firestore/src/local/indexeddb_remote_document_cache.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import { SnapshotVersion } from '../core/snapshot_version';
2020
import {
2121
DocumentKeySet,
2222
DocumentSizeEntries,
23-
DocumentSizeEntry,
2423
MutableDocumentMap,
2524
mutableDocumentMap
2625
} from '../model/collections';
@@ -55,6 +54,11 @@ import { RemoteDocumentCache } from './remote_document_cache';
5554
import { RemoteDocumentChangeBuffer } from './remote_document_change_buffer';
5655
import { IterateOptions, SimpleDbStore } from './simple_db';
5756

57+
export interface DocumentSizeEntry {
58+
document: MutableDocument;
59+
size: number;
60+
}
61+
5862
export interface IndexedDbRemoteDocumentCache extends RemoteDocumentCache {
5963
// The IndexedDbRemoteDocumentCache doesn't implement any methods on top
6064
// of RemoteDocumentCache. This class exists for consistency.

packages/firestore/src/local/memory_remote_document_cache.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { isCollectionGroupQuery, Query, queryMatches } from '../core/query';
1919
import { SnapshotVersion } from '../core/snapshot_version';
2020
import {
2121
DocumentKeySet,
22-
DocumentSizeEntry,
2322
MutableDocumentMap,
2423
mutableDocumentMap
2524
} from '../model/collections';
@@ -37,7 +36,9 @@ import { RemoteDocumentChangeBuffer } from './remote_document_change_buffer';
3736
export type DocumentSizer = (doc: Document) => number;
3837

3938
/** Miscellaneous collection types / constants. */
40-
interface MemoryRemoteDocumentCacheEntry extends DocumentSizeEntry {
39+
interface MemoryRemoteDocumentCacheEntry {
40+
document: Document;
41+
size: number;
4142
readTime: SnapshotVersion;
4243
}
4344

packages/firestore/src/model/collections.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ import { Document, MutableDocument } from './document';
2525
import { DocumentKey } from './document_key';
2626

2727
/** Miscellaneous collection types / constants. */
28-
export interface DocumentSizeEntry {
29-
document: Document;
30-
size: number;
31-
}
3228

3329
export type MutableDocumentMap = SortedMap<DocumentKey, MutableDocument>;
3430
const EMPTY_MUTABLE_DOCUMENT_MAP = new SortedMap<DocumentKey, MutableDocument>(

0 commit comments

Comments
 (0)