-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(types): add explicit types for composables & remove
baseUrl
fro…
…m tsconfig (#404)
- Loading branch information
Showing
5 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import type { Session } from '@supabase/supabase-js' | ||
import { useState } from '#imports' | ||
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 = () => useState<Session | null>('supabase_session', () => null) | ||
export const useSupabaseSession = (): Ref<Session> => useState<Session | null>('supabase_session', () => null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import type { User } from '@supabase/supabase-js' | ||
import { useState } from '#imports' | ||
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 = () => useState<User | null>('supabase_user', () => null) | ||
export const useSupabaseUser = (): Ref<User> => useState<User | null>('supabase_user', () => null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,5 @@ | |
"extends": "./.nuxt/tsconfig.json", | ||
"compilerOptions": { | ||
"strictNullChecks": false, | ||
"baseUrl": "src" | ||
} | ||
} | ||
|