We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68c41e6 commit d3244b8Copy full SHA for d3244b8
1 file changed
codegen/codegentemplates/frontend.go
@@ -45,7 +45,7 @@ export function {{.Name}}({{.TypescriptArgs}}) {
45
return {{if .Consumes}}postJson<{{if .Consumes}}{{.Consumes.AsTypeScriptType}}{{else}}void{{end}}, {{if .Produces}}{{.Produces.AsTypeScriptType}}{{else}}void{{end}}>{{else}}getJson<{{if .Produces}}{{.Produces.AsTypeScriptType}}{{else}}void{{end}}>{{end}}(` + "`{{.TypescriptPath}}`" + `{{if .Consumes}}, body{{end}});
46
}
47
{{if not .Consumes}}
48
-export function {{.Name}}Url({{.TypescriptArgs}}): string {
+export function {{.Name}}URL({{.TypescriptArgs}}): string {
49
return ` + "`{{.TypescriptPath}}`" + `;
50
}{{end}}
51
{{end}}
0 commit comments