🎨 Improve participant definition (#1337)

This commit is contained in:
Luke Vella 2024-09-14 16:17:48 +01:00 committed by GitHub
parent 12110be7c7
commit 4e7b391a9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 269 additions and 238 deletions

View file

@ -28,7 +28,7 @@ const userSchema = z.object({
export const UserContext = React.createContext<{
user: z.infer<typeof userSchema>;
refresh: (data?: Record<string, unknown>) => Promise<Session | null>;
ownsObject: (obj: { userId: string | null }) => boolean;
ownsObject: (obj: { userId?: string | null }) => boolean;
} | null>(null);
export const useUser = () => {