File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/firestore/src/local Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ import { PersistenceTransaction } from './persistence_transaction';
29
29
*/
30
30
export interface BundleCache {
31
31
/**
32
- * Gets a saved `Bundle ` for a given `bundleId`, returns undefined if
33
- * no bundles are found under the given id.
32
+ * Gets the saved `BundleMetadata ` for a given `bundleId`, returns undefined
33
+ * if no bundle metadata is found under the given id.
34
34
*/
35
35
getBundleMetadata (
36
36
transaction : PersistenceTransaction ,
Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ function isDocumentQuery(dbQuery: DbQuery): dbQuery is PublicDocumentsTarget {
306
306
return ( dbQuery as PublicDocumentsTarget ) . documents !== undefined ;
307
307
}
308
308
309
- /** Encodes a DbBundle to a Bundle . */
309
+ /** Encodes a DbBundle to a BundleMetadata object . */
310
310
export function fromDbBundle ( dbBundle : DbBundle ) : BundleMetadata {
311
311
return {
312
312
id : dbBundle . bundleId ,
@@ -372,7 +372,7 @@ export function fromProtoNamedQuery(namedQuery: ProtoNamedQuery): NamedQuery {
372
372
} ;
373
373
}
374
374
375
- /** Encodes a BundleMetadata proto object to a Bundle model object. */
375
+ /** Decodes a BundleMetadata proto into a BundleMetadata object. */
376
376
export function fromBundleMetadata (
377
377
metadata : ProtoBundleMetadata
378
378
) : BundleMetadata {
You can’t perform that action at this time.
0 commit comments