Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translating src/rewards/index.ts from JS to TS #84

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

a-khaldi
Copy link

@a-khaldi a-khaldi commented Aug 30, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Converting src/rewards/index.js from JS to TS
1 participant