-
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
bug in type narrowing #46885
Comments
Your described actual behaviour is wrong. The actual behaviour is what you describe in expected behaviour. The type of You expect the type of
Used search terms: |
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
Bug Report
I wrote a helper type to making some fields of object optional. But I got the following error in type narrowing.
π Search Terms
type narrowing, optionalize
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
input.y
isstring | undefined
π Expected behavior
I expected
input.y
to bestring
The text was updated successfully, but these errors were encountered: