TLLibraryItemContentRecord

See source code
Table of contents

Extends BaseRecord<'library-item-content', TLLibraryItemContentRecordId>.

An item's content, as a record of its own, keyed by the item's id (see ) so finding it needs no index.

Assets are not copied in: assetIds names asset records in the same store, so whatever the document does with its assets happens to these too. The shapes stay at the schema they were saved with, in content.schema, and are migrated when the content is loaded.

interface TLLibraryItemContentRecord extends BaseRecord<
  "library-item-content",
  TLLibraryItemContentRecordId
> {}

Properties

assetIds

assetIds: TLAssetId[];

content

content: {
  bindings?: TLBinding[];
  rootShapeIds: TLShapeId[];
  schema: SerializedSchema;
  shapes: TLShape[];
  users?: TLUser[];
};

id

readonly
readonly id: Id;

itemId

itemId: TLLibraryItemId;

meta

meta: JsonObject;

typeName

readonly
readonly typeName: TypeName;

Prev
TLLibrary
Next
TLLibraryItemRecord