-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathliveblocks.config.ts
More file actions
40 lines (34 loc) · 1.18 KB
/
liveblocks.config.ts
File metadata and controls
40 lines (34 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Define Liveblocks types for your application
// https://liveblocks.io/docs/api-reference/liveblocks-react#Typing-your-data
declare global {
interface Liveblocks {
// Each user's Presence, for useMyPresence, useOthers, etc.
Presence: {
cursor: { x: number; y: number } | null;
thinking: boolean;
};
// The Storage tree for the room, for useMutation, useStorage, etc.
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
Storage: {};
// Custom user info set when authenticating with a secret key
UserMeta: {
id: string;
info: {
id: string;
name: string;
avatar: string;
color: string;
};
};
// Custom events, for useBroadcastEvent, useEventListener
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
RoomEvent: {};
// Custom metadata set on threads, for useThreads, useCreateThread, etc.
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
ThreadMetadata: {};
// Custom room info set with resolveRoomsInfo, for useRoomInfo
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
RoomInfo: {};
}
}
export {};