Skip to content

routier-collection


routier-collection / plugins/blob/src / isFileReference

Function: isFileReference()

isFileReference(value): value is FileReferenceValue

Defined in: plugins/blob/src/BlobDbPlugin.ts:136

Whether a value is already a stored reference rather than content waiting to be uploaded.

Checked structurally on key and checksum together. A Blob has neither; a reference read back from the database has both. Testing one alone would misread any object that happens to carry a key.

Parameters

value

unknown

Returns

value is FileReferenceValue

Released under the MIT License.