typewiz:在TypeScript代码中自动发现并添加缺少的类型

时间:2021-01-28 17:47:38
【文件属性】:
文件名称:typewiz:在TypeScript代码中自动发现并添加缺少的类型
文件大小:171KB
文件格式:ZIP
更新时间:2021-01-28 17:47:38
automation typescript code-quality type-safety Codequality TypeWiz 在TypeScript代码中自动发现并添加缺少的类型。 介绍 TypeWiz在运行时监视变量类型,并使用此信息将缺失的类型注释添加到TypeScript代码中。 例如,给定以下源代码作为输入: function add ( a , b ) { return a + b ; } add ( 5 , 6 ) ; TypeWiz将自动检测a和b的类型为number ,并将重写为以下代码: function add ( a : number , b : number ) { return a + b ; } add ( 5 , 6 ) ; 您可以在博客文章中了解有关该项目的更多信息: 用法 有关前端代码,请查看。 对于node.js代码,请查看 。 要从命令行使用TypeWiz,请尝试使用 。 如果您对创建自己的自定义集成感兴趣,请参阅,以获取有关如何直接使用TypeWiz API的示例。 您可以通过将此库添加到项目中来直接使用API​​: yarn add -D typewiz-core 要么 npm install --save-dev
【文件预览】:
typewiz-master
----.gitignore(57B)
----tsconfig.json(540B)
----README.md(4KB)
----lerna.json(133B)
----packages()
--------typewiz-webpack()
--------typewiz-angular()
--------typewiz-core()
--------typewiz-node()
--------typewiz()
----wallaby.js(1KB)
----package.json(1KB)
----tslint.json(195B)
----CONTRIBUTING.md(2KB)
----prettier.config.js(283B)
----.travis.yml(211B)
----.editorconfig(230B)
----yarn.lock(288KB)
----assets()
--------typewiz.png(12KB)

网友评论