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.
1 parent 1c139c7 commit 4a1cdb6Copy full SHA for 4a1cdb6
src/server/templates/typescript.ts
@@ -484,7 +484,7 @@ export const apply = async ({
484
485
function generateNullableUnionTsType(tsType: string, isNullable: boolean) {
486
// Only add the null union if the type is not unknown as unknown already includes null
487
- if (tsType === 'unknown' || !isNullable) {
+ if (tsType === 'unknown' || tsType === 'any' || !isNullable) {
488
return tsType
489
}
490
return `${tsType} | null`
0 commit comments