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

Improve typings #2838

Merged
merged 9 commits into from
May 26, 2019
Merged

Improve typings #2838

merged 9 commits into from
May 26, 2019

Conversation

zxbodya
Copy link
Contributor

@zxbodya zxbodya commented May 21, 2019

While exploring code base, found that some typings are incomplete or incorrect… And so I decided to fix it.

In this PR, I fixed types, to make typescript happy - now typecheck can complete without errors.

This can be the first step on a way to start having more strict typechecks.

Also, added typecheck command in npm scripts, would be nice to add it to CI, but I am not sure where exactly to add it.

In some places, where I am not sure what typings should be, or suspect there might be actual error - I added ts-ignore with additional comments, I would suggest - someone with deeper knowledge about codebase to review and to fix that cases properly.

This was referenced May 21, 2019
@Rich-Harris Rich-Harris merged commit ca8c856 into sveltejs:master May 26, 2019
@Rich-Harris
Copy link
Member

Thank you, this is positively heroic!

@zxbodya zxbodya deleted the improve-typings branch May 26, 2019 12:38
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.

2 participants