Announcing TypeScript 0.8.2

Announcing TypeScript 0.8.2

Rate This
  • Comments 23

We’re happy to announce the 0.8.2 preview release of TypeScript.  This release has been focused on  addressing key usability feedback and filling in tooling experiences.  Along the way, we’ve 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 a highly requested feature.  In fact, it’s currently the 2nd most-requested feature in the issue tracker.

With 0.8.2, the TypeScript compiler and tools now support JSDoc comments.

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.

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.  We’ve also started extending lib.d.ts, the default JS and DOM API library, with JSDoc comments.

This capability is also part of the language service, so cross-platform tools can take advantage of it.

Compile-on-Save

Many of the themes in this release center around simplifying workflow.  We’ve focused on a few key areas with the aim of streamlining developing in TypeScript.

Languages like TypeScript which compile to JavaScript add a build step into the development cycle.  Enabling a compile-on-save mode of use minimizes this overhead by automatically updating the compiled JS when the TypeScript source changes.  With 0.8.2, we’ve done work to further enable this in both the NPM-based compiler and in Visual Studio.

The 0.8.2 release adds initial support for compile-on-save in Visual Studio.  Just as the name implies, when enabled the project or file being edited will be compiled when the changes are saved.  For more information, please see the wiki page for compile-on-save.

 

TypeScript supports compile-on-save on the command line using the cross-platform NPM-based TypeScript compiler as well with the improved --watch compiler option.  This option allows a compile to begin watching a set of files.  Once a watched file is changed, the compiler rebuilds the corresponding output for that file.

Various Improvements

  • We’ve further improved the Visual Studio TypeScript debugging experience in 0.8.2.  The debugger will now honor breakpoints after F5 (refresh) during a debug session.  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.
  • It’s possible now to specify output directory when compiling external modules.  This gives a cleaner way to build external modules without having the output in-tree.
  • The compiler service can now be replaced in the TypeScript for Visual Studio 2012 plugin.  This makes it easier to leverage the Visual Studio TypeScript extension with newer compiler builds from CodePlex or from experimental forks.
  • We’ve moved to Jake for building the compiler and language service.  Jake is a simpler solution which should make it easier to work with and build the compiler in a multiplatform-friendly way.
Leave a Comment
  • Please add 4 and 1 and type the answer here:
  • Post
  • thanks for this new release.

    I just wonder, is there any way to generate documentation from the JSDoc comments, if not, will it be implemented in the future? JSDoc on the other hand seems to be an outdated not maintained anymore and not sure it will work out-of-the-box on typescript sources...

    regards.

  • interesting. jsdoc appears to have "changed" ownership a few times.  appears latest is on github  github.com/.../jsdoc  d

  • We can't use break point in typescript.

  • @Nitin - A few things to try:

    Try uninstalling the TypeScript VS plugin via Add/Remove programs and then reinstalling.  Also, if you're using WebEssentials, try updating to the latest version or disabling it to see if that helps.

    Also, what version of Visual Studio are you using?  

  • Is that possible, we can use data base just like sql server etc in TypeScript.

  • Visual Studio 2012

  • @Nitin Visual Studio 2012 is supported.  If you try the steps I give and still have issues, do let us know.

    TypeScript is intended to be used in the same places that JavaScript is used.  It's a way to build JavaScript applications, so anywhere you can use JavaScript you should be able to use TypeScript.

  • I have already try but we are not getting new.

Page 2 of 2 (23 items) 12