Tldraw/packages/tlsync/src/lib/server-types.ts

13 wiersze
300 B
TypeScript

import { RoomSnapshot, TLSyncRoom } from './TLSyncRoom'
/** @public */
export type RoomState = {
// the slug of the room
persistenceKey: string
// the room
room: TLSyncRoom<any>
}
/** @public */
export type PersistedRoomSnapshotForSupabase = { id: string; slug: string; drawing: RoomSnapshot }