TLLibraryItemContentRecord
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
from BaseRecord
readonly id: Id;itemId
itemId: TLLibraryItemId;meta
meta: JsonObject;typeName
readonly
from BaseRecord
readonly typeName: TypeName;Prev
TLLibraryNext
TLLibraryItemRecord