【24h】

Inference and Evolution of TypeScript Declaration Files

机译:TypeScript声明文件的推断和演变

获取原文

摘要

TypeScript is a typed extension of JavaScript that has become widely used. More than 2000 JavaScript libraries now have publicly available TypeScript declaration files, which allows the libraries to be used when programming TypeScript applications. Such declaration files are written manually, however, and they are often lagging behind the continuous development of the libraries, thereby hindering their usability. The existing tool tscheck is capable of detecting mismatches between the libraries and their declaration files, but it is less suitable when creating and evolving declaration files. In this work we present the tools tsinfer and tsevolve that are designed to assist the construction of new TypeScript declaration files and support the co-evolution of the declaration files as the underlying JavaScript libraries evolve. Our experimental results involving major libraries demonstrate that tsinfer and tsevolve are superior to tscheck regarding these tasks and that the tools are sufficiently fast and precise for practical use.
机译:TypeScript是已被广泛使用的JavaScript的类型化扩展。现在,超过2000个JavaScript库具有公开可用的TypeScript声明文件,该文件允许在对TypeScript应用程序进行编程时使用这些库。但是,这样的声明文件是手动编写的,它们通常落后于库的持续开发,从而阻碍了它们的可用性。现有的tscheck工具能够检测库及其声明文件之间的不匹配,但是在创建和发展声明文件时不太适合。在这项工作中,我们介绍工具tsinfer和tsevolve,这些工具旨在帮助构建新的TypeScript声明文件,并随着基础JavaScript库的发展而支持声明文件的协同进化。我们涉及主要库的实验结果表明,在这些任务上,tsinfer和tsevolve优于tscheck,并且该工具具有足够的速度和精度,可以实际使用。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号