chore: remove nullable list elements in ts typegen (#17369)

Backend will not send partially null slices.
This commit is contained in:
Steven Masley
2025-04-11 15:49:18 -05:00
committed by GitHub
parent c06ef7c1eb
commit 39b9d23d96
2 changed files with 7 additions and 5 deletions
+2
View File
@@ -79,6 +79,8 @@ func TsMutations(ts *guts.Typescript) {
// Omitempty + null is just '?' in golang json marshal
// number?: number | null --> number?: number
config.SimplifyOmitEmpty,
// TsType: (string | null)[] --> (string)[]
config.NullUnionSlices,
)
}