General Updates

This commit is contained in:
Ahmad 2024-09-27 22:53:25 -04:00
parent d4586b1fa5
commit beb661143b
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
4 changed files with 12 additions and 7 deletions

View file

@ -4,7 +4,8 @@ declare global {
interface Liveblocks {
// Each user's Presence, for useMyPresence, useOthers, etc.
Presence: {
cursor: { x: number; y: number } | null;
// Example, real-time cursor coordinates
cursor: { x: number; y: number };
};
// The Storage tree for the room, for useMutation, useStorage, etc.
@ -25,9 +26,9 @@ declare global {
// Custom events, for useBroadcastEvent, useEventListener
RoomEvent: {};
// Example has two events, using a union
// | { type: "PLAY" }
// | { type: "REACTION"; emoji: "🔥" };
// Example has two events, using a union
// | { type: "PLAY" }
// | { type: "REACTION"; emoji: "🔥" };
// Custom metadata set on threads, for useThreads, useCreateThread, etc.
ThreadMetadata: {