We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Considering this:
import { OverrideProperties } from 'type-fest'; type Original = { foo: string; bar: string; }; type Modified = { foo: string | undefined; bar: string; }; const test: OverrideProperties<Original, Modified> = { bar: '' };
foo is typed as foo?: string instead of foo: string | undefined
foo?: string
foo: string | undefined
This is particularly problematic when using exactOptionalPropertyTypes flag
exactOptionalPropertyTypes
The text was updated successfully, but these errors were encountered:
Add test for #858
2547a00
Are you on the latest type-fest version?
type-fest
I added a test for your case and it is passing: 2547a00
Sorry, something went wrong.
@sindresorhus Indeed, issue went away with 4.10.0 my bad, thank you!
No branches or pull requests
Considering this:
foo is typed as
foo?: string
instead offoo: string | undefined
This is particularly problematic when using
exactOptionalPropertyTypes
flagUpvote & Fund
The text was updated successfully, but these errors were encountered: