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

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.

主站蜘蛛池模板: 年辖:市辖区| 武冈市| 贡觉县| 卢龙县| 小金县| 扶余县| 宜章县| 天气| 冷水江市| 北辰区| 东阳市| 武平县| 晋州市| 南皮县| 黄山市| 通江县| 榆林市| 乌鲁木齐县| 汉川市| 广丰县| 吴江市| 淮安市| 密云县| 拉孜县| 吉隆县| 苍山县| 铅山县| 惠来县| 南昌县| 南投市| 玉门市| 全州县| 香河县| 鱼台县| 淄博市| 密云县| 电白县| 晋中市| 定陶县| 民丰县| 都江堰市|