added thrift licence header to thrift.d.ts
modified generated function definitions