Skip to content

Commit

Permalink
Merge pull request #3 from maxifom/fix
Browse files Browse the repository at this point in the history
add correct type mapping to typescript
  • Loading branch information
maxifom authored Mar 24, 2022
2 parents 660aff5 + 75915c8 commit eddc82f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/ts/struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var StructTemplate = strings.TrimSpace(`export type {{.Name}} = {
};
export type {{.Name}}Interm = {
{{ range .Fields }}{{.Name}}: {{ if ne .IntermediateType "" }}{{.IntermediateType}}{{else}}{{.Type}}{{end}}
{{end-}}
{{end}}
};
`)

0 comments on commit eddc82f

Please sign in to comment.