Skip to content

Commit

Permalink
Merge pull request #2 from LastKing/master
Browse files Browse the repository at this point in the history
fix: 修复 导入pb,message type 使用错误的问题
  • Loading branch information
stringang authored Apr 19, 2021
2 parents a61e474 + c42b27a commit cc11248
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "protoc-gen-tsd",
"version": "0.0.8",
"version": "0.0.9",
"description": "Protocol Buffers Compiler(protoc) plugin for TypeScript - Generate definition file(d.ts)",
"keywords": [
"protocol-buffer",
Expand Down
2 changes: 1 addition & 1 deletion src/template/message.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export namespace <%= messageProtoModel.message.messageName %> {
<%_ return; -%>
<%_ } -%>
<%_ if (value.type == messageProtoModel.MESSAGE_TYPE) { -%>
<%- value.camelCaseName %>: <%- value.fieldObjectType -%>.I<%- value.fieldObjectType -%>,
<%- value.camelCaseName %>: <%- value.fieldObjectType -%>.I<%- value.fieldObjectType.split(".").pop() -%>,
<%_ return; -%>
<%_ } -%>
<%- value.camelCaseName %>: <%- value.fieldObjectType -%>,
Expand Down

0 comments on commit cc11248

Please sign in to comment.