Hello, ActionScript community!

Today, I'm happy to announce the release of dts2as 0.8.0. dts2as is a command line utility that accepts TypeScript definition files as input and creates a SWC file. The SWC file may be used by both the Apache FlexJS transpiler and IDEs to expose JavaScript libraries to ActionScript. To learn how to use dts2as, check out my tutorial, Introduction to dts2as: Using TypeScript definitions with ActionScript.

dts2as 0.8.0 improves support for reading valid TypeScript definitions, and it handles many edge cases that previous versions missed. You'll benefit from greater compatibility with many existing TypeScript definitions on DefinitelyTyped and elsewhere. Here are some of the noteworthy changes and improvements:

  • dts2as can now parse the full ES6/ES2015 standard library, which is included with the TypeScript compiler in a filed named lib.es6.d.ts.
  • TypeScript enums are now supported.
  • Many of the error messages now include more information about where parsing fails.
  • Upgraded to TypeScript 1.8.

Simply reinstall dts2as from npm to upgrade to the new version.

npm install -g dts2as

If you run into any issues during installation, you can uninstall the old version and start fresh.

npm uninstall -g dts2as

Happy coding!

Josh Tynjala
NextGen ActionScript