/
githubmirror
/
tldraw
Обзор
Документация
Войти
/
githubmirror
/
tldraw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/editor/src/lib/utils/sync/StoreWithStatus.ts
30 строк
640 B
Steve Ruiz
Renaming types, shape utils, tools (#1513)
04 июн 2023, 13:38
Не верифицирован
04 июн 2023, 13:38
0f89309
Код
Авторство
О чём код?
import { TLStore } from '@tldraw/tlschema' /** @public */ export type TLStoreWithStatus = | { readonly status: 'not-synced' readonly store: TLStore readonly error?: undefined } | { readonly status: 'error' readonly store?: undefined readonly error: Error } | { readonly status: 'loading' readonly store?: undefined readonly error?: undefined } | { readonly status: 'synced-local' readonly store: TLStore readonly error?: undefined } | { readonly status: 'synced-remote' readonly connectionStatus: 'online' | 'offline' readonly store: TLStore readonly error?: undefined }