TLLibraryItemRecord

See source code
Table of contents

Extends BaseRecord<'library-item', TLLibraryItemId>.

An item as a record in a document's store. Its thumbnail names image asset records in the same store, so the images are uploaded, synced and copied like any other asset in the document. Its content is a separate TLLibraryItemContentRecord, so listing a library never reads shapes.

interface TLLibraryItemRecord extends BaseRecord<
  "library-item",
  TLLibraryItemId
> {}

Properties

createdAt

optional

When the item was saved, in milliseconds since the epoch.

createdAt?: number;

id

readonly
readonly id: Id;

libraryId

libraryId: TLLibraryId;

meta

meta: JsonObject;

name

optional

Left out when nobody has named the item. When present it is never blank.

name?: string;

thumbnail

optional

Left out when the item has no thumbnail.

thumbnail?: TLLibraryThumbnail<TLAssetId>;

typeName

readonly
readonly typeName: TypeName;

version

Always 1 for now: items aren't replaced. To change one, delete it and add it again.

version: number;

Prev
TLLibraryItemContentRecord
Next
TLLibraryRecordPropsMap