gas-mock-globals
gas-mock-globals copied to clipboard
Rewriting the codebase to TS
This pull request rewrites the codebase to typescript.
- [x] Change all files from .js to .ts
- [x] Convert imports and exports to Typescript style
- [x] Add any type annotations to classes
- [ ] Add correct type annotations to classes
- [x] Ensure all tests run correctly
Cool, I'll look intro it later today
@jsarafajr Nevermind, I forgot to change it from a .js to .ts file 🤦All tests are passing now.
Still not sure about typing the global exports correctly. Any help would be appreciated for that, I'm not familiar with the global.variable export pattern and declaring global types.
I have fixed the type errors I could find and all tests are passing. Haven't added any new tests since I have not added any functionality.
The global exports still need fixing and I am not sure how to do them, so will appreciate your help @jsarafajr :)