-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Spread operator cannot be typed with intersection type #57100
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
Comments
@RyanCavanaugh It links a suggestion/feature request, and this one is surely a bug. Can we mark that one as bug, or unduplicate this one? |
Correctly representing this requires a new feature. Missing features aren't bugs - there's no straightforward way to just "fix" this without that feature. |
It doesn't, really. The type is |
That doesn't correctly handle optional properties. |
This issue has been marked as "Duplicate" and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
π Search Terms
intersection spread
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?#code/MYewdgzgLgBAtgUwE4HMEwLwwDwEEA0MAQgHwAUAhgFwwEwBGNRAlJiTGQN4B0vFhvbvQC+zANwAoCaEiwArphicAHjTKsM7AORbhkmdBgA3RSrUb2ABj3TwhgO6nVHCzChI5CG7dkxlixFQEMjlCQLQyI0J7ZmZuZXVJAHokv24oEAAZEHtkAGEKCHQASwgYMBBYChgAMzkwYChi8B8IEAAbBG52kBQyZXSsnPzC4NixIA
π» Code
π Actual behavior
TS doesn't see any kind of an issue with the code
π Expected behavior
Property 'toLowerCase' does not exist on type 'boolean'
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: