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

CLI: Convert helpers and src/lib to ts #557

Closed

Conversation

MarkPollmann
Copy link
Contributor

@MarkPollmann MarkPollmann commented May 18, 2020

related to Tracking Issue #523

As these are some of the first ts files and I don't know the project well yet it was quite difficult to pin down the exact types. I tried to guess them from the test file and other usages but feel free to correct them :)

It definitely needs some refinement once more files are converted...

@MarkPollmann MarkPollmann changed the title CLI: Convert helpers to ts CLI: Convert helpers and src/lib to ts May 19, 2020
@MarkPollmann
Copy link
Contributor Author

MarkPollmann commented May 19, 2020

I typed the cli/src/lib folder as well. There are a few issues left which I didn't know how to type properly. I don't think they are showstoppers but maybe someone else could take a look :)

Just a heads-up, I needed to re-order functions in src/lib/index.ts as TS complained that functions were used before they were defined.

No idea why eslint complains about import ordering for files I didn't touch, though. 🤔

Edit: ran yarn lint --fix

@peterp
Copy link
Contributor

peterp commented May 19, 2020

I don't think we have an equivalent ordering rule in the JS world. I find it somewhat annoying, but it kinda makes sense.

@peterp
Copy link
Contributor

peterp commented May 22, 2020

@MarkPollmann This is an amazing amount of work, thank you so much for this.

@peterp peterp changed the base branch from master to main June 19, 2020 15:34
@peterp
Copy link
Contributor

peterp commented Jun 20, 2020

Hey @MarkPollmann, I've messed up on this one - I should've merged it ages ago! I'm going to branch off your branch and see what I can in.

@peterp peterp self-assigned this Jun 20, 2020
@peterp peterp removed their assignment Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants