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 |
||
---|---|---|
.. | ||
example | ||
common_test.go | ||
common.go | ||
docgen.go | ||
endpoint_test.go | ||
endpoint.go | ||
gogen_test.go | ||
gogen.go | ||
tsgen.go | ||
tsgenmock.go | ||
tstypes_test.go | ||
tstypes.go |