Public typealias

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

SerializedStore, TLRecord, TLAnyBindingUtilConstructor, MigrationSequence, TLAnyShapeUtilConstructor, StoreSchema, TLStoreProps

Source

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

TLStoreEventInfoTLStoreWithStatus