You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The current golang type alias generates typescript that is not very friendly
Describe the solution you'd like
Enhanced enumeration
Describe alternatives you've considered
// golang
type Config struct {
A string `json:"a"`
B string `json:"b"`
C Color `json:"c"`
}
type Color string
var (
Bule Color = "blue"
Red Color = "red"
)
// ts
export type Color = "blue" | "red"
export class Config {
a: string;
b: string;
c: Color;
}
When writing code like this, it prompts you
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The current golang type alias generates typescript that is not very friendly
Describe the solution you'd like
Enhanced enumeration
Describe alternatives you've considered
When writing code like this, it prompts you
Additional context
No response
The text was updated successfully, but these errors were encountered: