-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
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"`
}
Metadata
Metadata
Assignees
Labels
No labels