From cf75b494caf27b7aa061cdf7f9905b43c53478a1 Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Mon, 21 Oct 2024 16:13:16 +0200 Subject: [PATCH] chore: update types --- packages/elements-react/src/hooks/useSession.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/elements-react/src/hooks/useSession.ts b/packages/elements-react/src/hooks/useSession.ts index 3cf4c571..fc0046e2 100644 --- a/packages/elements-react/src/hooks/useSession.ts +++ b/packages/elements-react/src/hooks/useSession.ts @@ -11,10 +11,10 @@ import { frontendClient } from "../util/client" type SessionStore = { setIsLoading: (loading: boolean) => void setSession: (session: Session) => void - isLoading?: boolean - session?: Session - error: unknown - setError: (error: unknown) => void + isLoading: boolean + session: Session | undefined + error: string | undefined + setError: (error: string | undefined) => void } const sessionStore = create()( @@ -24,7 +24,7 @@ const sessionStore = create()( session: undefined, setSession: (session: Session) => set({ session }), error: undefined, - setError: (error: unknown) => set({ error }), + setError: (error: string | undefined) => set({ error }), })), )