Assetinterface
import { Asset } from '@mortar-kit/core'
interface AssetAn uploaded file, as Assets.list returns it.
Properties
key: stringThe key documents store, e.g.
hero-photo-x7k2q9.jpg.name: stringThe name it was uploaded as, lowercased (
hero-photo.jpg).kind: AssetKindtype: stringMIME type, from the extension.
size: numberSize in bytes.
src: stringURL to load it from (
BlobStore.url).modified?: stringWhen it was stored (ISO 8601), if the store knows.
title: stringDefault title: copied into an image or file field when the asset is picked. '' if none.
alt: stringDefault alt text (images): copied into an image field when the asset is picked. '' if none.
folder: stringThe id of the folder it is in, or '' for none.