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

Merge merges optional any incorrectly #506

Closed
JuanM04 opened this issue Oct 25, 2022 · 4 comments · Fixed by #583
Closed

Merge merges optional any incorrectly #506

JuanM04 opened this issue Oct 25, 2022 · 4 comments · Fixed by #583
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@JuanM04
Copy link

JuanM04 commented Oct 25, 2022

In version 3.1.0, Merge works incorrectly

type Merged = Merge<{ someKey?: any }, { anotherKey: true }>;

// Before
type Merged = { someKey?: any; anotherKey: true }

// Now
type Merged = { someKey: any; anotherKey: true }

someKey now becomes required.

@sindresorhus
Copy link
Owner

// @skarab42

Most likely introduced in eb7f08b

@kykungz
Copy link

kykungz commented Mar 16, 2023

Will this get fixed?

@sindresorhus sindresorhus added bug Something isn't working help wanted Extra attention is needed labels Mar 18, 2023
@center-777
Copy link

eb7f08b

No, rollback not solves the problem

@skarab42
Copy link
Collaborator

I take a look this week-end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants