The code for this example was written in ActionScript and transpiled to JavaScript using Apache FlexJSâ˘. It uses the Pixi.js JavaScript library, including compile-time type checking of all Pixi.js APIs by the ActionScript compiler.
For more details, and the complete source code, please see Introduction to dts2as: Using TypeScript definitions with ActionScript.