Skip to content

Commit

Permalink
fix(types): nullable composable types (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
th1m0 authored Aug 30, 2024
1 parent 596ece2 commit cbbfd86
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/runtime/composables/useSupabaseSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import { useState, type Ref } from '#imports'
* Reactive `Session` state from Supabase. This is initialized in both client and server plugin
* and, on the client, also updated through `onAuthStateChange` events.
*/
export const useSupabaseSession = (): Ref<Session> => useState<Session | null>('supabase_session', () => null)
export const useSupabaseSession = (): Ref<Session | null> => useState<Session | null>('supabase_session', () => null)
2 changes: 1 addition & 1 deletion src/runtime/composables/useSupabaseUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ import { useState, type Ref } from '#imports'
* Reactive `User` state from Supabase. This is initialized in both client and server plugin
* and, on the client, also updated through `onAuthStateChange` events.
*/
export const useSupabaseUser = (): Ref<User> => useState<User | null>('supabase_user', () => null)
export const useSupabaseUser = (): Ref<User | null> => useState<User | null>('supabase_user', () => null)
3 changes: 0 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"strictNullChecks": false,
}
}

0 comments on commit cbbfd86

Please sign in to comment.