Skip to content

fix(types): propagate type parameter constraints for TypeScript 4.8 #6351

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

Merged

Conversation

DanielRosenwasser
Copy link
Contributor

Hey! 👋

In TypeScript 4.8, we recently added some stricter checking around unconstrained generics being incompatible with emptyish object types (things that are effectively {} or { [key: string]: ... }, etc. The changes are only in nightly versions of TypeScript right now, but we've been exploring how open-source projects have been impacted. These are the changes necessary for Vue's core repo to build cleanly in TypeScript 4.8.

@DanielRosenwasser DanielRosenwasser force-pushed the propagateTypeParametrsFor4.8 branch from 6d5040e to 58e6345 Compare July 25, 2022 23:55
@netlify
Copy link

netlify bot commented Jul 26, 2022

Deploy Preview for vuejs-coverage failed.

Name Link
🔨 Latest commit 58e6345
🔍 Latest deploy log https://app.netlify.com/sites/vuejs-coverage/deploys/62df2d8e45fceb0008b8830b

Copy link
Member

@sxzz sxzz left a comment

Choose a reason for hiding this comment

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

LGTM

@sxzz sxzz added the ready to merge The PR is ready to be merged. label Jun 12, 2023
@sxzz sxzz force-pushed the propagateTypeParametrsFor4.8 branch from 58e6345 to 8a78e6a Compare June 12, 2023 20:38
@yyx990803 yyx990803 merged commit 516fabb into vuejs:main Jul 9, 2023
@haoqunjiang
Copy link
Member

This PR seems to have broken vue-i18n's type:
https://github.com/intlify/vue-i18n-next/blob/f092f90ee4c0e26d915e84d8e86a97e999d9aaaa/packages/vue-i18n-core/src/directive.ts#L88C12-L88C12

@DanielRosenwasser DanielRosenwasser deleted the propagateTypeParametrsFor4.8 branch July 11, 2023 08:53
yyx990803 added a commit that referenced this pull request Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge The PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants