Open sev3ryn opened 2 years ago
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"` }
Agreed, running into the same issue. Might solve it in out fork in a while
It would be great if this tool could convert Go generics to Typescript generics