Tldraw/packages/tlsync/src/index.ts

41 wiersze
954 B
TypeScript

export {
TLServer,
type DBLoadResult,
type DBLoadResultType,
type TLServerEvent,
} from './lib/TLServer'
export {
TLCloseEventCode,
TLSyncClient,
type TLPersistentClientSocket,
type TLPersistentClientSocketStatus,
} from './lib/TLSyncClient'
export { TLSyncRoom, type RoomSnapshot, type TLRoomSocket } from './lib/TLSyncRoom'
export { chunk } from './lib/chunk'
export {
RecordOpType,
ValueOpType,
applyObjectDiff,
diffRecord,
getNetworkDiff,
type AppendOp,
type DeleteOp,
type NetworkDiff,
type ObjectDiff,
type PatchOp,
type PutOp,
type RecordOp,
type ValueOp,
} from './lib/diff'
export {
TLIncompatibilityReason,
TLSYNC_PROTOCOL_VERSION,
type TLConnectRequest,
type TLPingRequest,
type TLPushRequest,
type TLSocketClientSentEvent,
type TLSocketServerSentEvent,
} from './lib/protocol'
export { schema } from './lib/schema'
export type { PersistedRoomSnapshotForSupabase, RoomState as RoomState } from './lib/server-types'