Project Description
This project provides a type inteface for the
kineticjs library: kinetic.d.ts. Including this file in your TypeScript project will add Intellisense support for the kineticjs library.
Usage
- Copy the kinect.d.ts file to your project
- Add a reference to the kinect.d.ts file at the top of your .ts file eg. /// <reference path="kinect.d.ts" />
- Don't forget to reference KineticJS file in your HTML file
- Use the KineticJS interface in your .ts file
window.onload = () => {
var rect = new Kinetic.Rect({ width:10,height:10, cornerRadius:5 });
}
Requires
Disclaimer
The creation of the interface was a lot of handwork in typing the classes and reading the documentation. Overall I think I got most of it right. But ofcourse I could have made spellingerrors or small errors like required parameters where they should be optional.
If you find such errors please let me know so I can fix em and update the interface.