Skip to content

Commit

Permalink
add correct type mapping to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
maxifom committed Mar 24, 2022
1 parent 26b0fb3 commit 75915c8
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 75915c8

Please sign in to comment.