You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Its hard to implement infered types when the type system gets in the way, regardless of the robustness of being able to declare type dependencies in consuming functions or classes.
Duplicate #10727. Lacking a specific type operator to represent spread, ... uses intersection as the next-closest thing when one of the operands is a type parameter.
Bug Report
🔎 Search Terms
spread object
🕗 Version & Regression Information
v4.7.4 v4.8.0-beta
⏯ Playground Link
https://www.typescriptlang.org/play?ts=4.7.4#code/MYewdgzgLgsAUAAhAIwFYFNhQIzwLwDe8CAFugDbkgBcARAOogBO5AJrfAL4ICGECoSFADc8MXEHRiKDFgBM+IojKUatALI8mEDnG58B4aKLjiAZgFcwWAJbgEAZQAOTdD1YAeAIIAaAEIAfAAUPNS+yNR+AJRKCK5QFkxgsQgAdOk8PsRp6chZiJxc4vCSsIgOFQ74zq7uQTKYOD4N8lEmAPTtCFAkNvwAnhSs-GDoAG7oTKnFcJ0I9CQ8UN1k3f1O6BD90OgAtis2YADWEPBzNW6evoEIeAEIXgBkfjNzC0txVlA2u+jtteQbFB+ghxjxyBYlptujQzl0Lu5vP57ncEAB5XZApEII7ofogMwIQLPIA
Playground link with relevant code
💻 Code
🙁 Actual behavior
The resultant type of the spread operation did not model that which is happening in runtime.
🙂 Expected behavior
The type system is grounded and models that which is happening in runtime.
The text was updated successfully, but these errors were encountered: