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

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.

主站蜘蛛池模板: 株洲市| 湘潭市| 伊金霍洛旗| 大连市| 阿拉善左旗| 昌图县| 石楼县| 彭水| 托克逊县| 富裕县| 交口县| 镇雄县| 上林县| 德州市| 长宁区| 东乌珠穆沁旗| 沙雅县| 吉安县| 承德县| 独山县| 板桥市| 靖宇县| 博湖县| 乌拉特后旗| 大同市| 布拖县| 皮山县| 墨玉县| 精河县| 河北区| 姜堰市| 高唐县| 拜泉县| 友谊县| 北辰区| 类乌齐县| 曲沃县| 景谷| 黔南| 藁城市| 始兴县|