Backout 801f18595539e23fb62e4951a48820e575081cc6, a79c8c54c381a75891af3a480fcacf38bb53d453

- Backout "Add type definetions for TypeScript"
- These commits are merged into 1 commt.
Add type definitions for TypeScript.