From 75915c858f98e8fd8f7d00ef1f6374faa4cc9f3c Mon Sep 17 00:00:00 2001 From: Maxim Fominykh Date: Fri, 25 Mar 2022 00:30:07 +0500 Subject: [PATCH] add correct type mapping to typescript --- templates/ts/struct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/ts/struct.go b/templates/ts/struct.go index 970fe97..cedd887 100644 --- a/templates/ts/struct.go +++ b/templates/ts/struct.go @@ -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}} }; `)