Source

createjs_ts_definitions /

Filename Size Date modified Message
examples
21.5 KB
2.8 KB
884 B
4.1 KB
5.7 KB

CreateJS TypeScript Definitions

Hello, here you can find the typescript definitions of createjs's libraries. Uses the MIT license.

This is still in its early stage, so if you find something wrong (maybe some argument that should be optional) be sure to tell.

Versions

Typescript version: 0.8.0

EaselJS: 0.5.0
TweenJS: 0.3.0
SoundJS: 0.3.0
PreloadJS: 0.2.0

Usage

Just add at the beginning of the file:

/// <reference path="path/to/easeljs-0.5.0.d.ts" />

etc

Some issues

  • not sure about how to inherit from a createjs class (right now, I'm having a interface extend the class -- see the BitmapAnimation example)
  • properties that can have different types
  • methods that return different types
  • it doesn't seem to recognize the Image type