Open przemeklach opened 2 years ago
As per the README: "Only fields with a valid json tag will be converted to TypeScript models"
So you have to declare the list type like this
type GetDeviceListingsResponse struct {
DeviceListing []DeviceListing `json:"deviceListing"`
}
Hi,
Given a struct:
I create two other alias structs:
The CreateListingResponse Typescript interface is created correctly; however, for GetDeviceListingsResponse it just outputs: