{"_id":"@antfu/dts-from-thrift","_rev":"3-1b1fe747ec4fd70bcb3f1c4c4c334eac","name":"@antfu/dts-from-thrift","dist-tags":{"latest":"1.1.7"},"versions":{"1.1.5":{"name":"@antfu/dts-from-thrift","version":"1.1.5","description":"typescript,thrift,protobuf","main":"lib/index.js","scripts":{"test_old":"nyc -e=.ts --require ts-node/register mocha ./test/**/*.test.ts","test":"nyc -e=.ts --require ts-node/register mocha ./test/thriftNew/*.test.ts","cov":"nyc --reporter=text-lcov report > coverage.lcov && codecov","build":"rm -rf lib/&&npx tsc -p tsconfig.build.json","prepare":"npm run lint&&npm run build","lint":"eslint ./src/**/*.ts --fix"},"repository":{"type":"git","url":"git+ssh://git@github.com/LPegasus/dts-from-thrift.git"},"author":{"name":"pegusas1@hotmail.com"},"license":"ISC","devDependencies":{"@types/chai":"^4.1.4","@types/debug":"^0.0.30","@types/fs-extra":"^5.0.4","@types/glob":"^5.0.35","@types/mocha":"^5.2.5","@types/prettier":"^1.18.3","@typescript-eslint/eslint-plugin":"^2.4.0","@typescript-eslint/parser":"^2.4.0","chai":"^4.1.2","codecov":"^3.1.0","eslint":"^6.8.0","mocha":"^5.2.0","nyc":"^13.1.0","ts-node":"^7.0.1","typescript":"^3.8.3"},"dependencies":{"@creditkarma/thrift-parser":"^1.1.5","chalk":"^3.0.0","commander":"^2.17.1","debug":"^3.1.0","fs-extra":"^7.0.0","glob":"^7.1.2","prettier":"^1.18.2","protobufjs":"^6.8.8","tslib":"^1.11.1"},"bin":{"dts-from-thrift":"bin/dts-from-thrift","dts-from-protobuf":"bin/dts-from-protobuf"},"gitHead":"50f240160538840b0d6cd275c2dc3ac7a4a7151b","bugs":{"url":"https://github.com/LPegasus/dts-from-thrift/issues"},"homepage":"https://github.com/LPegasus/dts-from-thrift#readme","_id":"@antfu/dts-from-thrift@1.1.5","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-pOb5ZDuV/SuVqlqqtQZQLPRg5diZcQBIM4TNU3KXhPdO14lZBCHfdb4oyiWuxsYxifK87sRIqjW8Qqe7ifPJrA==","shasum":"0b9c4d10f9d3a333ee3faa1e88fd00eea3f1284c","tarball":"https://registry.npmjs.org/@antfu/dts-from-thrift/-/dts-from-thrift-1.1.5.tgz","fileCount":71,"unpackedSize":310466,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe60YXCRA9TVsSAnZWagAA+rcP/R8mw0Vozq9fvxJBlL60\no87V5ngmXVnVGxkQH8uOXThslCC9YH3fGPWvI6WVIIu4FhQOS2ZdZyajEuCd\nmYZtKQpjxLhiwKNneeKIHMs7If4wA6R7/oYq6aPI5BUDJbAL64XJm4NoeIXP\ngOxEJiUGFPxHF+ZlsFoTQpyfeYzWD4hP/+VF+eLFoVuUuWp5OCMp0qWSpSDq\nqGTZEkoDB6fa6c+V/6PqC3Clu43d9z/X3dH2bWiGExuY9MUP1TrDfdye01z6\nz1MyfTtviCZkXjmlQLVoROw3AO4CUD5wWBMBD9lgV1Wl/5OCNICYg3QHpL4P\nTRs1Tk0i2I/PGs6FxagJaYoPvilkGNV49vDhmPleD/5GBKPf8eIighO4rQz4\nLNbyBkzJX/vqQYmrnWlPHvNV3ZIejl3m0YnNK+vPsGVEGcCwaNiWoqc8rPtz\nB00BcwksJFZKv2gDF4pe8FC9u+zK20TT1OxbfOmggelkSOCE9KbWRfpudnAi\nfD0BB2v7K88Z1+3S/odL4lYhputqwqwJN093cIvGgn5pbYUEB0OYQQM55HyN\nRGuM1tFLSQRoean5Ubgnd1ATaWXtcBmCr42+0Ch0bV8KuJGpo1hD82PwrgQL\nrNseZbqVW8V7Lc2j+vkczEP1+eLJZAC8L9fr7APNospv+M/3JAb061R750Qy\n+YC5\r\n=Ie1n\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcGKawKNqkL4V42iDXEZ9k17RqJP+7K2kzpCXSalvNugIgALPDGSqXkWqhFZepUuwzzFK3UKRItM6uRumSbUuPafs="}]},"maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dts-from-thrift_1.1.5_1592477206952_0.8409255330285403"},"_hasShrinkwrap":false},"1.1.6":{"name":"@antfu/dts-from-thrift","version":"1.1.6","description":"typescript,thrift,protobuf","main":"lib/index.js","scripts":{"test_old":"nyc -e=.ts --require ts-node/register mocha ./test/**/*.test.ts","test":"nyc -e=.ts --require ts-node/register mocha ./test/thriftNew/*.test.ts","cov":"nyc --reporter=text-lcov report > coverage.lcov && codecov","build":"rm -rf lib/&&npx tsc -p tsconfig.build.json","prepare":"npm run lint&&npm run build","lint":"eslint ./src/**/*.ts --fix"},"repository":{"type":"git","url":"git+ssh://git@github.com/LPegasus/dts-from-thrift.git"},"author":{"name":"pegusas1@hotmail.com"},"license":"ISC","devDependencies":{"@types/chai":"^4.1.4","@types/debug":"^0.0.30","@types/fs-extra":"^5.0.4","@types/glob":"^5.0.35","@types/mocha":"^5.2.5","@types/prettier":"^1.18.3","@typescript-eslint/eslint-plugin":"^2.4.0","@typescript-eslint/parser":"^2.4.0","chai":"^4.1.2","codecov":"^3.1.0","eslint":"^6.8.0","mocha":"^5.2.0","nyc":"^13.1.0","ts-node":"^7.0.1","typescript":"^3.8.3"},"dependencies":{"@creditkarma/thrift-parser":"^1.1.5","chalk":"^3.0.0","commander":"^2.17.1","debug":"^3.1.0","fs-extra":"^7.0.0","glob":"^7.1.2","prettier":"^1.18.2","protobufjs":"^6.8.8","tslib":"^1.11.1"},"bin":{"dts-from-thrift":"bin/dts-from-thrift","dts-from-protobuf":"bin/dts-from-protobuf"},"gitHead":"50f240160538840b0d6cd275c2dc3ac7a4a7151b","bugs":{"url":"https://github.com/LPegasus/dts-from-thrift/issues"},"homepage":"https://github.com/LPegasus/dts-from-thrift#readme","_id":"@antfu/dts-from-thrift@1.1.6","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ToMskTBwwShPlEe0FzfwegLe5dOjpGZfhhxSxWDxV7x1+gkDaljwpNP3lTKZvJu3uX8z8I5yfaGay++lh92rEA==","shasum":"e4e7090d8e6e8a7c45bc4a51b4674d839e962b66","tarball":"https://registry.npmjs.org/@antfu/dts-from-thrift/-/dts-from-thrift-1.1.6.tgz","fileCount":71,"unpackedSize":310433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe60jNCRA9TVsSAnZWagAAhA8P+wVx2+x+lqYchSRFP4nt\nlrVuTomdkSg94MxLOegfWn+TZPUA6gUkkVzmXPyLM/VusGYOIHEGpA7xXl9u\ncyVWPZOjgvG1i4s8I/2cgN6csiXNerQYXobmZ99+ZIPpV7V8tpCySRMdHNqo\nRmaufkzb2kOYoEk98QiZNn8rSzG5yKgLuJyveZtA/ZnB3I67KleZoyfhhamM\nTSVRZbFHpBgj13BylADACUI5lTn2+l7fQOqFvY8dwpDHhWbV/okWj5EuscKf\nqnpZ15zQI1yDjAxrRpxJLgbZDFHnf2bOF+Z4rvzMwATJlP41/V/93aIO6ejD\n36ajooBat+OWw7t9ffDS1isDpLSKIDv6t+T4xI8aRJp3uQC5HZ1rK+PqSJnF\nMyvfj3Z3ZByeuZgQ+OoqvmYbKxX39XXEHqxevNjNtmXznvMMlPSG87ELF8CH\ntUSk9OdtVvEYvP+FhF/hvKKyN0P8R9tapk/cNpTg+Yu+HM+6kCDXo3EGyWZj\ncNoNlRIWHP90Y1sO58nIbwQy+hHlLFASKxyL+z1sNAb08blhNGJvTYVI1T1e\nbs0x2owVcGY4ySMi2M6UsclYJxm1hiXz8Pj2kQHrQceL4+xlK8xlmt6ui4PV\ns+Lrod/E2VZ0ah/zVsvVn68H1x806m2zjWcGlOiED8Embh2x97yXCevHHAK0\npQw5\r\n=foNj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA0vxY95FJxjN+fNoSiH1hMlZ4ZjnNp72RLe2cuoG/XIAiBWZr7NhgnZ8LHc5Rv6trVu66fo6+ghgxSYQbUavOYPQw=="}]},"maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dts-from-thrift_1.1.6_1592477901185_0.4189339397935512"},"_hasShrinkwrap":false},"1.1.7":{"name":"@antfu/dts-from-thrift","version":"1.1.7","description":"typescript,thrift,protobuf","main":"lib/index.js","scripts":{"test_old":"nyc -e=.ts --require ts-node/register mocha ./test/**/*.test.ts","test":"nyc -e=.ts --require ts-node/register mocha ./test/thriftNew/*.test.ts","cov":"nyc --reporter=text-lcov report > coverage.lcov && codecov","build":"rm -rf lib/&&npx tsc -p tsconfig.build.json","prepare":"npm run lint&&npm run build","lint":"eslint ./src/**/*.ts --fix"},"repository":{"type":"git","url":"git+ssh://git@github.com/LPegasus/dts-from-thrift.git"},"author":{"name":"pegusas1@hotmail.com"},"license":"ISC","devDependencies":{"@types/chai":"^4.1.4","@types/debug":"^0.0.30","@types/fs-extra":"^5.0.4","@types/glob":"^5.0.35","@types/mocha":"^5.2.5","@types/prettier":"^1.18.3","@typescript-eslint/eslint-plugin":"^2.4.0","@typescript-eslint/parser":"^2.4.0","chai":"^4.1.2","codecov":"^3.1.0","eslint":"^6.8.0","mocha":"^5.2.0","nyc":"^13.1.0","ts-node":"^7.0.1","typescript":"^3.8.3"},"dependencies":{"@creditkarma/thrift-parser":"^1.1.5","chalk":"^3.0.0","commander":"^2.17.1","debug":"^3.1.0","fs-extra":"^7.0.0","glob":"^7.1.2","prettier":"^1.18.2","protobufjs":"^6.8.8","tslib":"^1.11.1"},"bin":{"dts-from-thrift":"bin/dts-from-thrift","dts-from-protobuf":"bin/dts-from-protobuf"},"gitHead":"60b570aa527dcf92f078f6626f7bc1728ef2a79d","bugs":{"url":"https://github.com/LPegasus/dts-from-thrift/issues"},"homepage":"https://github.com/LPegasus/dts-from-thrift#readme","_id":"@antfu/dts-from-thrift@1.1.7","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-s/DnvUiRfHei7kuN/+wa+axprEga1+Da4OsrOxbZxJwoZjwBlhEBnQv45gt5VMIzkehfOd8xa8JqYZ+BeCrfFA==","shasum":"de6371320549b3eafdfc014fafd4cbb7ff5a122b","tarball":"https://registry.npmjs.org/@antfu/dts-from-thrift/-/dts-from-thrift-1.1.7.tgz","fileCount":71,"unpackedSize":310459,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe63a7CRA9TVsSAnZWagAAKWgP/2+YzSfwkn1DZ8TjJC2T\n0jsTRp0nqlWFQ9cSiuL7mziGedK5myK/FMN2+R2UqVX+tf53zztff5cqxmcQ\nEZlkcWCVxFviUgrwb8OkVfJ3hxsz8xYZ4eTzYGTEp8xRltFo3Y9cuRlFHgGG\njkWA767TQ+pQNxBkQolp+U0s7+ua5T8OXC93KQnak0RjJSyofTxsUQ/4/jpc\npp+dAdsVJ/jlGNRLY7Z5ZDBuThfcwm+1NfpXGCAqg5WYzNjPnAwEl/y2vfIw\nqYwBwb61QaVCah9f7N1NdrBpHRMp9aoUZxSHkZ/yAQcVwWYFgdB7ECYLQUQJ\njGMcVw3r5PCPIHfhshU+rPrtXWx5QZX2eOiff73dDfWcd7TyzrrUGqescIo7\nGJjgzDp/AvHGTTey6wO64tpoCwBKKhwUZPTi37TAbXRymg4mohSXYX+FcOKV\nnKNr6CgDdl+x+o8rF+BchY7+jO/Gq0jKoa6PZFWQu0PD6w1iRHHVf2nGJqka\ne8B39DRDz4TxpPV/0HNTZdGcdlDTSTGGuJEGWJcyxuUgdQCh/Z5q3U3SVg4B\nTgk+/K1lJeQyXufc89Jbi3ysCQoYuW9ILF1CU4n24/fLTsiEPdHdPrFTFyev\nyI/cbc95ZT3cjg1ykiScG4Kq4Tf7/6p5rZwjq3v5wvdV4vIlxUEl6hKlA1Mn\nt5q7\r\n=Qd+K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFTmXoDl3BAUVLn2ihn96KhF3hEpk1HjR0mzl8LQnFVxAiEA/AlC8ar4t6vEzo6V87lDa28BVT/IK03ttK8oNywLu/U="}]},"maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"_npmUser":{"name":"antfu","email":"anthonyfu117@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dts-from-thrift_1.1.7_1592489658663_0.4491183011809965"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-18T10:46:46.911Z","1.1.5":"2020-06-18T10:46:47.102Z","modified":"2022-04-04T14:21:35.061Z","1.1.6":"2020-06-18T10:58:21.363Z","1.1.7":"2020-06-18T14:14:18.804Z"},"maintainers":[{"name":"antfu","email":"anthonyfu117@hotmail.com"}],"description":"typescript,thrift,protobuf","homepage":"https://github.com/LPegasus/dts-from-thrift#readme","repository":{"type":"git","url":"git+ssh://git@github.com/LPegasus/dts-from-thrift.git"},"author":{"name":"pegusas1@hotmail.com"},"bugs":{"url":"https://github.com/LPegasus/dts-from-thrift/issues"},"license":"ISC","readme":"# dts-from-thrift\n\n[![npm version](https://badge.fury.io/js/dts-from-thrift.svg)](https://www.npmjs.com/package/dts-from-thrift)[![build](https://travis-ci.org/LPegasus/dts-from-thrift.svg?branch=master)](https://travis-ci.org/LPegasus/dts-from-thrift)[![coverage](https://img.shields.io/codecov/c/github/LPegasus/dts-from-thrift.svg?style=flat-square)](https://codecov.io/gh/LPegasus/dts-from-thrift)[![install size](https://packagephobia.now.sh/badge?p=dts-from-thrift)](https://packagephobia.now.sh/result?p=dts-from-thrift)\n\nthrift RPC 定义文件转 d.ts 工具\n\n**安装(install)：** `npm install dts-from-thrift -g`\n\n**运行(exec)：**`dts-from-thrift -p ~/git/my-thrift-repo/thrift -o ~/git/my-ts-repo/typings`\n\n由于实现全靠正则，特殊 case 无法避免，可以提 issue 或者 PR。\n\n(The tool use RegExp to generate d.ts file. If some special statement cases causes bugs, an issue or a PR is welcome.)\n\n# 变更历史（ChangeLog)\n\n## 1.1.4 - 2020.04.28\n\n### Changed\n\n- 优化 thrift 文件生成的代码格式 ([@mehwww](https://github.com/mehwww) in [#22](https://github.com/LPegasus/dts-from-thrift/pull/22))\n\n## 1.1.3 - 2020.03.29\n\n### Breaking Change\n\n- protobuf 所有字段均为 optional，与 pb3 一致\n\n## 1.1.0 - 2020.03.19\n\n### Breaking Change\n\n- 删除 `--new` 传参，只保留 ast 解析\n\n### Changed\n\n- 将行尾注释放到该行上面，使用 `/** */` 标注，以使得 vscode 可提示注释内容\n\n## 1.0.3 - 2019.11.18\n\n### Bugfix\n\n- 修复 const enum 为空的报错 [commit](https://github.com/LPegasus/dts-from-thrift/pull/19)\n\n## 1.0.2 - 2019.10.29\n\n### Bugfix\n\n- 老的 protobuf 转换类型逻辑受 1.0.0 功能影响，回滚老的代码逻辑\n\n## 1.0.0 - 2019.10.20\n\n### Added\n\n- 新增 `--i64` 参数\n\n  i64 转换成 string 或 Int64 对象**（需要加 --new 参数）**\n\n  ```shell\n  node ./bin/dts-from-[thrift|protobuf] -p ./test/idl/ \\\n  -o ./test/idl/out/ \\\n  --new --i64 string\n  ```\n\n- 新增 `--enum-json` 参数\n\n  把 thrift idl 中的 const 输出到 d.ts 和 enum.json 中，用于类型提示或者自定义 babel 插件（for byted-react-scripts）\n\n  默认输出在 enums.json 文件中\n\n  > 注意：d.ts 中的 const 在编译过程中并不会被转换。效果可以运行根目录下的 run.sh 来查看。\n\n- 新增 `--map` 参数\n\n  支持 thrift idl 中的 `map<type_a, type_b>` 输出到 `Record<string, type_b>`\n\n  > 注意：Record 对于 key 的支持只有 number,string,symbol，所以 `type_a` 强制为 `string`。\n\n  栗子：\n\n  ```shell\n  node ./bin/dts-from-[thrift|protobuf] -p ./test/idl/ \\\n  -o ./test/idl/out/ \\\n  --new --i64 string --map\n  ```\n\n## 1.0.0-rc.10 - 2019.9.8\n\n针对 struct 中的 field 是否是 optional 进行了梳理，详见`test/thriftNew/readCode.test.ts` line649 和下表，主要是针对`/\\w+Response/i`和`/\\w+Request/i`做了特殊处理，以符合实际的 idl 语义\n\n| 是否可选                             | requeird | 无（默认）    | optional |\n| ------------------------------------ | -------- | ------------- | -------- |\n| \\*response                           | false    | false         | true     |\n| \\*response & defualt value           | False    | false         | true     |\n| \\*request                            | false    | false\\|true\\* | true     |\n| \\*request & default value            | false    | true          | true     |\n| Use-strict                           | false    | true          | true     |\n| No-use-strict                        | false    | false         | true     |\n| [^request\\|response] & Default value | false    | true          | true     |\n\n\"\\*\"表示需要标记`strict-request`开启，表示是业务定制\n\n## 1.0.0-rc.6 - 2019.8.19\n\n### Added\n\n- 新增 `--strict-response` 传参\n\n  指定后如果 struct 名称包含 Response（例如：`ListResponse`），那么它的字段如果有 defaultValue 词缀，则此字段不会有 optional 标识\n\n  ```ts\n  /*\n  struct CreateResponse {\n      255: optional i32 err_no (defaultValue=0);\n  }\n  */\n\n  interface CreateResponse {\n    err_no: number; // 不指定的时候是 err_no?: number;\n  }\n  ```\n\n## 1.0.0-rc.5 - 2019.8.9\n\n### Added\n\n- dts-from-thrift 保留注释和注解\n\n## 1.0.0-rc.3 - 2019.7.12\n\n### Fixed\n\n- dts-from-protobuf 旧逻辑没有适配 `--i64_as_number` 参数\n\n## 1.0.0-rc.2 - 2019.6.25\n\n### Added\n\n- protobuf 如果没有 package，将尝试从 options 中取一个名称作为 namespace。如果没有 options，取文件路径为 namespace\n- dts-from-protobuf 新增 `--i64_as_number` 参数，将 i64 降级为 number\n\n## 1.0.0-rc.1 - 2019.6.24\n\n### Changed\n\n- protobuf 如果没有 package，将跳过该文件，而非中断报错\n\n## 1.0.0-rc.0 - 2019.6.5\n\n### Added\n\n- 新增 `--new` 参数，分别使用 [protobufjs](https://github.com/protobufjs/protobuf.js) 解析 pb、使用 [@creditkarma/thrift-parser](https://github.com/creditkarma/thrift-parser) 解析 thrift\n\n## 0.9.0-beta.1 - 2019.1.7\n\n### Bugfix\n\n- `thrift` `Struct` 字段如果定义了 `defaultValue`，生成的 dts 字段将带 `?`\n\n  fields in `thrift Struct` with `defaultValue` will attach a `?` when in `d.ts` file\n\n## 0.9.0-beta.0 - 2019.1.2\n\n### Breaking Change\n\n- thrift `i64` 类型会被生成为 `Int64` 的接口类型。该接口定义在 `tsHelper.d.ts` 中\n\n## 0.8.8 - 2018.12.28\n\n### Bugfix\n\n- 正确解析有多个形参的 service\n\n  parse service with multiple params currectly\n\n## 0.8.6 - 2018.12.27\n\n### Bugfix\n\n- 正确解析单行 service 声明\n\n  parse single line service declaration currectly.\n\n- typeof 泛型映射修复\n\n  typedef generic type fix\n\n## 0.8 - 2018.11.26\n\n### Added\n\n- 为 `${namespace}._Summary_` 接口增加了 `WrapperService` 推导函数。用来解决 `i64` 转 number 在 js 下需要特殊处理的问题。可以通过扩展 `Int64Type` 接口来实现自己的 `i64` 类型适配\n\n  Add a type inference wrapper function to process the i64 type. Extends the `Int64Type` interface for customization.\n\n## 0.7 - 2018.11.20\n\n### Added\n\n- `dts-from-thrift` 支持合并 service 到一个定义文件中\n\n  使用 `--rpc-namespace=xxx` 来指定需要合并到的 namespace 中，并且可以通过 `${namespace}._Summary_` 来获得一个总的 interface 用以继承\n\n  ```javascript\n  > dts-from-thrift -p ./ -o ../typings --rpc-namespace=demo.rpc\n  \t// 你输入的命令 (the Command you input)\n  > RPC d.ts files is /Users/xxx/projectpath/typings/demo.rpc-rpc.d.ts\n  \t// 生成的 rpc 定义文件 (the rpc definition file name)\n  ```\n\n  使用 \\_Summary* 继承 rpc 接口 (use \\_Summary* to extends)\n\n  ```typescript\n  interface MyRPCContainer extends demo.rpc._Summary_ {}\n  ```\n\n### Bugfix\n\n- 修复 service 无形参接口的报错问题\n\n  fix service interfaces which are without input params\n\n## 0.6 - 2018.11.13\n\n### Added\n\n- thrift 现在支持生成 `service RpcService {}` 定义\n\n  (support service definition)\n\n  ```typescript\n  // thrift sample\n  service RpcService {\n      ResponseType interface1 (1: RequestType req);\n  }\n\n  // generate code\n  export interface RpcService {\n      interface1(req: RequestType): Promise<ResponseType>;\n  }\n  ```\n\n## 0.5\n\n### Added\n\n- dts-from-protobuf 支持\n\n  (add dts-from-protobuf CLI, support protobuf)\n\n  `dts-from-protobuf -p <protobuf_idl_dir> -o <output_dir>`\n\n## 0.4\n\n### Added\n\n- --use-tag CLI option，来支持下面的语法\n\n  (add a new option [--use-tag] to replace original fieldname with tagname)\n\n  ```csharp\n  struct Foo {\n    1: list<string> comments (go.tag=\"json:\\\\\"list,omitempty\\\\\"\"),\n  }\n\n  // before 0.4.0\n  interface Foo {\n    comments: string[];\n  }\n\n  // after 0.4.0 with [--use-tag go]\n  interface Foo {\n    list: string[];\n  }\n  // detail in parseStruct.test.ts\n  ```\n\n### Changed\n\n- codestyle: 生成文件增加 `// prettier-ignore` 避免 format 导致的 git 提交\n\n  (add `// prettier-ignore` at head of d.ts file to prevent useless git commit)\n","readmeFilename":"README.md"}