官术网_书友最值得收藏!

Better support by text editors and IDEs

There are a number of tools, such as Tern, that are trying to bring better autocompletion support for JavaScript in text editors and IDEs. However, as JavaScript is a dynamic language, it is impossible for the IDEs and text editors to make sophisticated suggestions without any metadata. Google Closure Compiler, for instance, uses type annotations provided in the JSDoc in order to provide static typing to the language.

Annotating the code with such metadata is a built-in feature of TypeScript known as type annotations. Based on them, text editors and IDEs can perform a better static analysis on our code. This provides better refactoring tools and autocompletion, which increases our productivity and allows us to make fewer mistakes while writing the source code for our applications.

主站蜘蛛池模板: 百色市| 武乡县| 阿拉善盟| 汉中市| 桐城市| 西昌市| 绥芬河市| 子洲县| 泊头市| 明溪县| 周口市| 昌乐县| 武鸣县| 隆昌县| 繁峙县| 富平县| 日喀则市| 娄底市| 永新县| 阜城县| 岚皋县| 宾阳县| 新沂市| 莎车县| 亚东县| 饶河县| 噶尔县| 浮梁县| 深水埗区| 邻水| 武山县| 灌阳县| 鸡东县| 田东县| 中西区| 株洲市| 黄龙县| 平陆县| 涟源市| 清镇市| 万荣县|