Add type definetions for TypeScript.
Merge pull request #10 from saneyuki/ts

- Add type definetions for TypeScript.