Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/vuePublic

fix(types): backport fix forwithDefaults when used together with generics#13223

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
francis-switcho wants to merge1 commit intovuejs:main
base:main
Choose a base branch
Loading
fromfrancis-switcho:backport-fix-for-generics-usage

Conversation

francis-switcho
Copy link

@francis-switchofrancis-switcho commentedNov 8, 2024
edited
Loading

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

There's a potential breaking change: defaults using a generic type must be declared via() => T instead ofTeven if they're primitive types.

The PR fulfills these requirements:

Other information:

This PR is nothing but a backport ofvuejs/core#8335 by@pikax to the Vue 2 codebase, fixing support for generics when using thewithDefaultshelper since we're relying on it to ease our migration from Vue 2 to Vue 3. I take no merit whatsoever besides taking the time to apply it to the Vue 2 codebase and test if it works.

Please let me know if it can be merged!

@francis-switchofrancis-switchoforce-pushed thebackport-fix-for-generics-usage branch froma56d621 tof6aea2fCompareNovember 8, 2024 19:10
@francis-switchofrancis-switcho changed the titlefix(types): backport fix from https://github.com/vuejs/core/pull/8335fix(types): backport fix forwithDefaults when used together with genericsNov 8, 2024
@francis-switchofrancis-switcho marked this pull request as ready for reviewNovember 9, 2024 18:46
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@francis-switcho

[8]ページ先頭

©2009-2025 Movatter.jp