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 TsConfigJson.CompilerOptions to latest TypeScript #529

Merged
merged 3 commits into from Dec 25, 2022

Conversation

Septh
Copy link
Contributor

@Septh Septh commented Dec 15, 2022

This PR adds:

/**
Control what method is used to detect module-format JS files.

Requires TypeScript version 4.7 or later.
Copy link
Owner

Choose a reason for hiding this comment

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

type-fest requires TS 4.7, so this is moot.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't get it. Why is that?

Copy link
Owner

Choose a reason for hiding this comment

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

Because the only way to get this type is to already be on TS 4.7, so the message of requiring TS 4.7 is not needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh. Sorry, I thought you were speaking of the whole PR. 🤪

Anyway, I would respectfully disagree. Users of this type are tsconfig consumers or producers and I think their editor telling them if a property is available in the version of TypeScript they are targeting (vs the one they're using) is a nice thing to have.

@sindresorhus sindresorhus merged commit 9f04028 into sindresorhus:main Dec 25, 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.

None yet

2 participants