tkrajina/typescriptify-golang-structs

We should have `MyType | undefined` for fields with a type pointer

shackra opened this issue · 0 comments

I have a struct which have a field pointer:

type Test struct {
    Field *string
}

However, the resulting conversion appears as follows:

export interface Test {
    field: string
}

Ideally, we should have something like field?: string instead.