587fa8fdff
This change gives the proper type to TS class fields generated from nillable Go struct fields. Previously, Go struct fields having a nil representation ([]Type, *Type, etc.) were translated into TypeScript as "Type | undefined". This isn't correct because these fields, when nil, are given the value "null" when marshalled into JSON. This change fixes this issue by giving these fields the type "Type | null". Change-Id: I5a1a83eb3810a3cba10895bb2f0f75ca5fd7d1b5 |
||
---|---|---|
.. | ||
myapi | ||
api.gen.go | ||
apidocs.gen.md | ||
client-api-mock.gen.ts | ||
client-api.gen.ts | ||
doc.go | ||
gen.go |