Skip to content

Commit 2fd1a63

Browse files
authoredAug 23, 2020
Fixing typo in template
The template is trying to access a "method" called `field.Type.JSType()`. It should be `field.Type.JSType`.
1 parent 3af828f commit 2fd1a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎otohttp/templates/client.ts.plush

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class Client {
6767
}
6868
}
6969
<%= for (field) in object.Fields { %>
70-
<%= format_comment_text(field.Comment) %> <%= field.NameLowerCamel %>: <%= if (field.Type.IsObject) { %><%= field.Type.TypeName %><% } else { %><%= field.Type.JSType() %><% } %><%= if (field.Type.Multiple) { %>[]<% } %>;
70+
<%= format_comment_text(field.Comment) %> <%= field.NameLowerCamel %>: <%= if (field.Type.IsObject) { %><%= field.Type.TypeName %><% } else { %><%= field.Type.JSType %><% } %><%= if (field.Type.Multiple) { %>[]<% } %>;
7171
<% } %>
7272
}
7373
<% } %>

0 commit comments

Comments
 (0)
Please sign in to comment.