Make file related BlobStore type more specific

GitOrigin-RevId: d5e70b13cbdfe1faf133eb4c040b0bbf6fa47dea
This commit is contained in:
Andrew Rumble
2025-04-07 17:04:43 +01:00
committed by Copybot
parent 392037efd6
commit b42b0a8d3e
3 changed files with 6 additions and 6 deletions

View File

@@ -13,7 +13,7 @@ const V2DocVersions = require('./v2_doc_versions')
/**
* @import Author from "./author"
* @import { BlobStore, RawChange } from "./types"
* @import { BlobStore, RawChange, ReadonlyBlobStore } from "./types"
*/
/**
@@ -219,7 +219,7 @@ class Change {
* If this Change contains any File objects, load them.
*
* @param {string} kind see {File#load}
* @param {BlobStore} blobStore
* @param {ReadonlyBlobStore} blobStore
* @return {Promise<void>}
*/
async loadFiles(kind, blobStore) {

View File

@@ -7,7 +7,7 @@ const Change = require('./change')
const Snapshot = require('./snapshot')
/**
* @import { BlobStore } from "./types"
* @import { BlobStore, ReadonlyBlobStore } from "./types"
*/
class History {
@@ -85,7 +85,7 @@ class History {
* If this History contains any File objects, load them.
*
* @param {string} kind see {File#load}
* @param {BlobStore} blobStore
* @param {ReadonlyBlobStore} blobStore
* @return {Promise<void>}
*/
async loadFiles(kind, blobStore) {

View File

@@ -13,7 +13,7 @@ let EditFileOperation = null
let SetFileMetadataOperation = null
/**
* @import { BlobStore } from "../types"
* @import { ReadonlyBlobStore } from "../types"
* @import Snapshot from "../snapshot"
*/
@@ -80,7 +80,7 @@ class Operation {
* If this operation references any files, load the files.
*
* @param {string} kind see {File#load}
* @param {BlobStore} blobStore
* @param {ReadOnlyBlobStore} blobStore
* @return {Promise<void>}
*/
async loadFiles(kind, blobStore) {}