File tree 3 files changed +56
-2
lines changed
3 files changed +56
-2
lines changed Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
+ import { Database } from ' ~~/types/database.types'
3
+
2
4
definePageMeta ({
3
5
middleware: ' auth'
4
6
})
5
7
6
- const client = useSupabaseClient ()
8
+ const client = useSupabaseClient < Database > ()
7
9
const user = useSupabaseUser ()
8
10
const loading = ref (false )
9
11
const newTask = ref (' ' )
Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ./.nuxt/tsconfig.json"
2
+ "extends" : " ./.nuxt/tsconfig.json" ,
3
+ "compilerOptions" : {
4
+ "strictNullChecks" : false
5
+ }
3
6
}
Original file line number Diff line number Diff line change
1
+ export type Json =
2
+ | string
3
+ | number
4
+ | boolean
5
+ | null
6
+ | { [ key : string ] : Json }
7
+ | Json [ ]
8
+
9
+ export interface Database {
10
+ public : {
11
+ Tables : {
12
+ tasks : {
13
+ Row : {
14
+ completed : boolean | null
15
+ created_at : string | null
16
+ id : number
17
+ title : string | null
18
+ user : string
19
+ }
20
+ Insert : {
21
+ completed ?: boolean | null
22
+ created_at ?: string | null
23
+ id ?: number
24
+ title ?: string | null
25
+ user : string
26
+ }
27
+ Update : {
28
+ completed ?: boolean | null
29
+ created_at ?: string | null
30
+ id ?: number
31
+ title ?: string | null
32
+ user ?: string
33
+ }
34
+ }
35
+ }
36
+ Views : {
37
+ [ _ in never ] : never
38
+ }
39
+ Functions : {
40
+ [ _ in never ] : never
41
+ }
42
+ Enums : {
43
+ [ _ in never ] : never
44
+ }
45
+ CompositeTypes : {
46
+ [ _ in never ] : never
47
+ }
48
+ }
49
+ }
You can’t perform that action at this time.
0 commit comments