added TypeScript definitions for JS library
Merge https://github.com/apache/thrift