-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Expect type go to optional to be unoptional... #55007
Labels
Duplicate
An existing issue was already created
Comments
Duplicate of #42384 and many others. It would be a fairly unsafe operation as well. |
This issue has been marked as "Duplicate" and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Report
🔎 Search Terms
-Make some properties optional in a TypeScript type
-typescript pick optional
🕗 Version & Regression Information
currrent version : "typescript": "^5.1.6"
Don t know if that bug existed before, just got the issue right now
⏯ Playground Link
Bug on the typescript playground
💻 Code
Code inside the playground
🙁 Actual behavior
Even if I condition the type I still got an error raise by typescript which is
Type 'string | undefined' is not assignable to type 'string'
🙂 Expected behavior
I expect type go to optional to be unoptional
The text was updated successfully, but these errors were encountered: