We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Json
undefined
1 parent 166fda0 commit 19308c2Copy full SHA for 19308c2
src/server/templates/typescript.ts
@@ -40,7 +40,7 @@ export const apply = ({
40
}, {} as Record<string, PostgresColumn[]>)
41
42
let output = `
43
-export type Json = string | number | boolean | null | { [key: string]: Json } | Json[]
+export type Json = string | number | boolean | null | { [key: string]: Json | undefined } | Json[]
44
45
export interface Database {
46
${schemas
test/server/typegen.ts
@@ -11,7 +11,7 @@ test('typegen', async () => {
11
| number
12
| boolean
13
| null
14
- | { [key: string]: Json }
+ | { [key: string]: Json | undefined }
15
| Json[]
16
17
0 commit comments