TLStoreBaseOptions
Table of contents
interface TLStoreBaseOptions {}Properties
assets
optional
How should this store upload & resolve assets?
assets?: TLAssetStore;defaultName
optional
The default name for the store.
defaultName?: string;initialData
optional
The initial data for the store.
initialData?: SerializedStore<TLRecord>;snapshot
optional
A snapshot of initial data to migrate and load into the store.
snapshot?: Partial<TLEditorSnapshot> | TLStoreSnapshot;users
optional
How should this store resolve users for attribution?
users?: TLUserStore;Methods
onMount
optional
Called when the store is connected to an Editor.
Parameters
| Name | Description |
|---|---|
|
Returns
(() => void) | void;Prev
TLStateNodeConstructorNext
TLSvgExportOptions