I translated the index.js file from JS to TS and this is how I did it:
First, I created two interfaces for the code (Rewards and RewardOB). In addition to that, I converted module.export (JS) to a TS equivalent. I also reformatted the TS file to avoid any errors of functions that have been called before it has been defined. I imported a couple modules as well.
resolves #16
I translated the index.js file from JS to TS and this is how I did it:
First, I created two interfaces for the code (Rewards and RewardOB). In addition to that, I converted module.export (JS) to a TS equivalent. I also reformatted the TS file to avoid any errors of functions that have been called before it has been defined. I imported a couple modules as well.