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

Update to TypeScript 4.0 #560

Merged
merged 2 commits into from Aug 23, 2020
Merged

Update to TypeScript 4.0 #560

merged 2 commits into from Aug 23, 2020

Conversation

marcelgerber
Copy link
Member

@marcelgerber marcelgerber commented Aug 21, 2020

There's not really that much new in the last few TypeScript releases, but there's &&=, ??= and such now, and also some performance improvements, including faster startup times in VS Code.

Only few fixes were needed in our code.

The only drawback right now is that ts-jest currently complains that it's running with an unsupported version of TS, but that's fixed already, just not released yet. We can upgrade it soon to get rid of the warning.

return {
...commitInformation,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious if this is just code cleanup or something new in TS?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd say this is some of both.
delete is not possible in this case, so I've gone for an alternative way.
The only other real change here is that the max length is changed from 60 to 50.

Copy link
Contributor

@breck7 breck7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If Jest is just a warning and things still work, LGTM.

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.

None yet

2 participants