TLStoreBaseOptions

See source code
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

Methods

onMount

optional

Called when the store is connected to an Editor.

Parameters

NameDescription

editor

Returns

(() => void) | void

Prev
TLStateNodeConstructor
Next
TLTickEventInfo