8000 fix(typegen): respect nullability in view columns · rogervaas/postgres-meta@adc3202 · GitHub
[go: up one dir, main page]

Skip to content

Commit adc3202

Browse files
committed
fix(typegen): respect nullability in view columns
1 parent 3fe3856 commit adc3202

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)
0