go 1.18 generics support
sev3ryn opened this issue · 1 comments
sev3ryn commented
It would be great if this tool could convert Go generics to Typescript generics
type SimpleTile struct {
AuditID string `json:"audit_id,omitempty"`
Image string `json:"image"`
}
type WideTile struct {
SimpleTile
Title string `json:"title"`
ButtonText string `json:"button_text"`
}
type DefaultTile struct {
SimpleTile
Title string `json:"title"`
ProviderName string `json:"provider_name"`
ProviderFavicon string `json:"provider_favicon"`
}
type Teaser[T DefaultTile | SimpleTile | WideTile] struct {
Tiles []T `json:"tiles"`
}
johan-lejdung commented
Agreed, running into the same issue. Might solve it in out fork in a while