Public typealias

Signature
type TLStoreWithStatus =
  | {
      readonly connectionStatus: 'offline' | 'online'
      readonly error?: undefined
      readonly status: 'synced-remote'
      readonly store: TLStore
    }
  | {
      readonly error: Error
      readonly status: 'error'
      readonly store?: undefined
    }
  | {
      readonly error?: undefined
      readonly status: 'loading'
      readonly store?: undefined
    }
  | {
      readonly error?: undefined
      readonly status: 'not-synced'
      readonly store: TLStore
    }
  | {
      readonly error?: undefined
      readonly status: 'synced-local'
      readonly store: TLStore
    }
References

TLStore

Source

packages/editor/src/lib/utils/sync/StoreWithStatus.ts

TLStoreOptionsTLSvgOptions