Skip to content

Commit

Permalink
chore: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Oct 21, 2024
1 parent 3d1861d commit cf75b49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/elements-react/src/hooks/useSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<SessionStore>()(
Expand All @@ -24,7 +24,7 @@ const sessionStore = create<SessionStore>()(
session: undefined,
setSession: (session: Session) => set({ session }),
error: undefined,
setError: (error: unknown) => set({ error }),
setError: (error: string | undefined) => set({ error }),
})),
)

Expand Down

0 comments on commit cf75b49

Please sign in to comment.