{"id":263,"date":"2013-01-21T13:50:00","date_gmt":"2013-01-21T13:50:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/typescript\/2013\/01\/21\/announcing-typescript-0-8-2\/"},"modified":"2024-07-01T11:05:07","modified_gmt":"2024-07-01T19:05:07","slug":"announcing-typescript-0-8-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/typescript\/announcing-typescript-0-8-2\/","title":{"rendered":"Announcing TypeScript 0.8.2"},"content":{"rendered":"<p>We\u2019re happy to announce the <a href=\"http:\/\/www.typescriptlang.org\/#Download\">0.8.2 preview release<\/a> of TypeScript.\u00a0 This release has been focused on\u00a0 addressing key usability feedback and filling in tooling experiences.\u00a0 Along the way, we\u2019ve also incorporated some of the highest-rated feature requests and bugfixes.<\/p>\n<h2>JSDoc Support<\/h2>\n<p>Being able to see API documentation comments during Intellisense and parameter help has been a highly requested feature.\u00a0 In fact, it\u2019s currently the <a href=\"http:\/\/typescript.codeplex.com\/workitem\/178\">2nd most-requested<\/a> feature in the issue tracker.<\/p>\n<p>With 0.8.2, the TypeScript compiler and tools now support JSDoc comments.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2013\/01\/1200.JSDoc_in_VS.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4316\" src=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2013\/01\/1200.JSDoc_in_VS.png\" alt=\"Image 1200 JSDoc in VS\" width=\"486\" height=\"314\" srcset=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2013\/01\/1200.JSDoc_in_VS.png 486w, https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2013\/01\/1200.JSDoc_in_VS-300x194.png 300w\" sizes=\"(max-width: 486px) 100vw, 486px\" \/><\/a><\/p>\n<p>In the TypeScript implementation, because types are already part of the system, we allow the JSDoc type annotation to be elided, as in the example above.<\/p>\n<p>You can now document a variety of language constructs (including classes, modules, interfaces, and functions) with comments that become part of the information displayed to the user.\u00a0 We\u2019ve also started extending lib.d.ts, the default JS and DOM API library, with JSDoc comments.<\/p>\n<p>This capability is also part of the language service, so cross-platform tools can take advantage of it.<\/p>\n<h2>Compile-on-Save<\/h2>\n<p>Many of the themes in this release center around simplifying workflow.\u00a0 We\u2019ve focused on a few key areas with the aim of streamlining developing in TypeScript.<\/p>\n<p>Languages like TypeScript which compile to JavaScript add a build step into the development cycle.\u00a0 Enabling a compile-on-save mode of use minimizes this overhead by automatically updating the compiled JS when the TypeScript source changes.\u00a0 With 0.8.2, we\u2019ve done work to further enable this in both the NPM-based compiler and in Visual Studio.<\/p>\n<p>The 0.8.2 release adds initial support for compile-on-save in Visual Studio.\u00a0 Just as the name implies, when enabled the project or file being edited will be compiled when the changes are saved.\u00a0 For more information, please see the <a href=\"http:\/\/typescript.codeplex.com\/wikipage?title=Compile-on-Save\">wiki page for compile-on-save<\/a>.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2013\/01\/4744.Compileonsave.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4317\" src=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2013\/01\/4744.Compileonsave.png\" alt=\"Image 4744 Compileonsave\" width=\"755\" height=\"438\" srcset=\"https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2013\/01\/4744.Compileonsave.png 755w, https:\/\/devblogs.microsoft.com\/typescript\/wp-content\/uploads\/sites\/11\/2013\/01\/4744.Compileonsave-300x174.png 300w\" sizes=\"(max-width: 755px) 100vw, 755px\" \/><\/a><\/p>\n<p>TypeScript supports compile-on-save on the command line using the cross-platform NPM-based TypeScript compiler as well with the improved &#8211;watch compiler option.\u00a0 This option allows a compile to begin watching a set of files.\u00a0 Once a watched file is changed, the compiler rebuilds the corresponding output for that file.<\/p>\n<h2>Various Improvements<\/h2>\n<ul>\n<li>We\u2019ve further improved the Visual Studio TypeScript debugging experience in 0.8.2.\u00a0 The debugger will now honor breakpoints after F5 (refresh) during a debug session.\u00a0 Combined with the addition of compile-on-save, the workflow to edit and debug a web app is as easy as saving the edited changes and refreshing the browser.<\/li>\n<li>It\u2019s possible now to specify output directory when compiling external modules.\u00a0 This gives a cleaner way to build external modules without having the output in-tree.<\/li>\n<li>The compiler service can now be replaced in the TypeScript for Visual Studio 2012 plugin.\u00a0 This makes it easier to leverage the Visual Studio TypeScript extension with newer compiler builds from CodePlex or from experimental forks.<\/li>\n<li>We\u2019ve moved to <a href=\"https:\/\/npmjs.org\/package\/jake\">Jake<\/a> for building the compiler and language service.\u00a0 Jake is a simpler solution which should make it easier to work with and build the compiler in a multiplatform-friendly way.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re happy to announce the 0.8.2 preview release of TypeScript.\u00a0 This release has been focused on\u00a0 addressing key usability feedback and filling in tooling experiences.\u00a0 Along the way, we\u2019ve also incorporated some of the highest-rated feature requests and bugfixes. JSDoc Support Being able to see API documentation comments during Intellisense and parameter help has been [&hellip;]<\/p>\n","protected":false},"author":375,"featured_media":1797,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-263","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-typescript"],"acf":[],"blog_post_summary":"<p>We\u2019re happy to announce the 0.8.2 preview release of TypeScript.\u00a0 This release has been focused on\u00a0 addressing key usability feedback and filling in tooling experiences.\u00a0 Along the way, we\u2019ve also incorporated some of the highest-rated feature requests and bugfixes. JSDoc Support Being able to see API documentation comments during Intellisense and parameter help has been [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/users\/375"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/comments?post=263"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/posts\/263\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/media\/1797"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/media?parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/categories?post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/typescript\/wp-json\/wp\/v2\/tags?post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}