Skip to content

Overwrite the generated type #5045

@march1993

Description

@march1993

Is your feature request related to a problem? Please describe.

Hi wailsapp developers,
is there any way to overwrite the generated typescript type in models.ts? I have a custom struct in go and I have fulfilled json.Marshaler json.Unmarshaler interface. However there is no way to tell wails to mark it as string.

Describe the solution you'd like

I would suggest adding a struct field tag, for example,

type A struct {
      B SomeStruct `tstype:"string"`
}

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions