Skip to content

Commit cbbfd86

Browse files
authored
fix(types): nullable composable types (#407)
1 parent 596ece2 commit cbbfd86

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/runtime/composables/useSupabaseSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ import { useState, type Ref } from '#imports'
55
* Reactive `Session` state from Supabase. This is initialized in both client and server plugin
66
* and, on the client, also updated through `onAuthStateChange` events.
77
*/
8-
export const useSupabaseSession = (): Ref<Session> => useState<Session | null>('supabase_session', () => null)
8+
export const useSupabaseSession = (): Ref<Session | null> => useState<Session | null>('supabase_session', () => null)

src/runtime/composables/useSupabaseUser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ import { useState, type Ref } from '#imports'
55
* Reactive `User` state from Supabase. This is initialized in both client and server plugin
66
* and, on the client, also updated through `onAuthStateChange` events.
77
*/
8-
export const useSupabaseUser = (): Ref<User> => useState<User | null>('supabase_user', () => null)
8+
export const useSupabaseUser = (): Ref<User | null> => useState<User | null>('supabase_user', () => null)

tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
22
"extends": "./.nuxt/tsconfig.json",
3-
"compilerOptions": {
4-
"strictNullChecks": false,
5-
}
63
}

0 commit comments

Comments
 (0)