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

Typescript 4.8 #6286

Closed
wants to merge 2 commits into from
Closed

Typescript 4.8 #6286

wants to merge 2 commits into from

Conversation

turadg
Copy link
Member

@turadg turadg commented Sep 20, 2022

Description

Upgrade TypeScript 4.7 to 4.8.

https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/

Security Considerations

Documentation Considerations

Testing Considerations

@@ -88,8 +88,8 @@ export const fsStreamReady = stream =>
* tmpName: typeof import('tmp').tmpName,
* unlink: typeof import('fs').promises.unlink,
* }} io
* @param {object} [options]
* @param {boolean | undefined} [options.keepSnapshots]
* @param {object} options
Copy link
Member

Choose a reason for hiding this comment

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

That seems like a regression, and I've also been hit by this in my own code. There is an explicit init of the options param with = {} so it is actually optional. This really feels like a TS bug. I need to read more on why this is happening.

Copy link
Member

Choose a reason for hiding this comment

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

Apparently there is already a bug filled on this: microsoft/TypeScript#50286

@turadg
Copy link
Member Author

turadg commented Sep 29, 2022

The regression won't be fixed until TS 4.9 so let's skip 4.8.

@turadg turadg closed this Sep 29, 2022
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