Skip to content

Commit 438093b

Browse files
authored
Merge pull request #414 from supabase/fix/typegen-views-nullability
fix(typegen): respect nullability in view columns
2 parents 3fe3856 + adc3202 commit 438093b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/templates/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export interface Database {
148148
column.format,
149149
types,
150150
schemas
151-
)} | null`
151+
)} ${column.is_nullable ? '| null' : ''}`
152152
)}
153153
}
154154
${

0 commit comments

Comments
 (0)