Public typealias

Signature
type TLStoreOptions = {
  defaultName?: string
  initialData?: SerializedStore<TLRecord>
} & (
  | {
      migrations?: readonly MigrationSequence[]
      shapeUtils?: readonly TLAnyShapeUtilConstructor[]
    }
  | {
      schema?: StoreSchema<TLRecord, TLStoreProps>
    }
)
References

SerializedStore, TLRecord, MigrationSequence, TLAnyShapeUtilConstructor, StoreSchema, TLStoreProps

Source

packages/editor/src/lib/config/createTLStore.ts

TLStoreEventInfoTLStoreWithStatus