struct2ts
struct2ts copied to clipboard
Generate Typescript classes/interfaces out of Go structs
As stated. Something like: ``` type Custom struct { MyValue `ts:"MyCustomType"` } ``` Should become: ``` interface Custom { my_value: MyCustomType } ``` For importing the types, I use a...
It doesn't handle field types of []*string, it just converts it straight to: ``*string[]``
I would like the ability to only export fields defined by the typescript. Type script doesn't seem to have a native way to do this as of the version I'm...
From https://github.com/OneOfOne/struct2ts/issues/13#issuecomment-572788815 A struct with ```golang Vars []map[string]interface{} `config:"vars" json:"vars,omitempty"` ``` is converted to: ```typescript vars?: map[string]interface {}[]; ``` instead of ```typescript vars?: { [key: string]: any }[]; ``` but...
Is there an option to convert stuct date to a string when generating typescript?
Hello, I'm trying to generate TS classes for all exported structs in a given file. I can't seem to be able to do this. What is the trick? on https://github.com/tkrajina/typescriptify-golang-structs...