After running the apache thrift compiler, I now have generated .js and .d.ts files. How do I incorporate these files into my current Angular2/Typescript project? I attempted to do so with the following lines of code:
///<reference path="./thrift.d.ts"/>
///<reference path="./Service.d.ts"/>
And
import Thrift = require("./thrift");
import Service = require("./Service")
Although the typescript compiler does not show any errors with these lines, I encounter an issue where "Thrift" is undefined when trying to use it. Both thrift.js, Service.js, and the respective .d.ts files are present in the folder.
Your assistance is greatly appreciated!