DocumentRef
A document slot's fixture value: a dev media pack asset reference.
A document slot’s fixture value: a dev media pack asset reference. Resolution
builds url from the asset’s file and reads filename, content_type and
size_bytes off the pack — none is statable here, and an id outside the
pack’s catalog is a compile error.
The key is document_id rather than the asset_id a RESOLVED document value
carries: asset_id is also what an assigned image value states, so a distinct
key keeps a document ref from being read as one.
Import from @homepages/template-kit/fixtures.
Signature
Section titled “Signature”export type DocumentRef = { document_id: DocumentAssetId; url?: never; filename?: never; content_type?: never; size_bytes?: never;};