Please add typescript definitions (or rewrite in TypeScript), so we can have strong typing, compilation checks and IDE code completion support.