mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
chore: remove nullable list elements in ts typegen (#17369)
Backend will not send partially null slices.
This commit is contained in:
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user