Skip to content

Commit e4251fa

Browse files
fix: return field name with composite type unknown (#483)
* fixed return unknown to name typed unknown * chore: fix formatting Co-authored-by: Qiao Han <[email protected]>
1 parent 29f38ef commit e4251fa

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
@@ -313,7 +313,7 @@ export interface Database {
313313
schemas
314314
)}`
315315
}
316-
return 'unknown'
316+
return `${JSON.stringify(name)}: unknown`
317317
})}
318318
}`
319319
)

0 commit comments

Comments
 (0)