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
https://gist.github.com/orta/f80db73c6e8211211e3d224a5ab47624 #45786
Improving error messages by thinking about them strucutrally.
Interesting approach: two column approach.
Everything goes through the same diagnostic output pipeline.
Big win would be to introduce newlines.
Pitch: not something we'd want to do by default, but maybe something we could put into tsc --init.
tsc --init
Lots of stuff becomes possible once you give this a thought.
Examples are conveniently not long lines.
Also, wrapping?
Only should do stuff like this if the objects are big enough.
Feels like there's a lot of stuff we could have benefitted from where the diagnostic system would be "lazy", and supported formatting.
Aren't we already agreed on the
Type { x: Yadda } is not assignable to type { y: Badda }
These might look good in theory, but not be in practice.
Inspecting the width of the console?
When we explore constraints of types, we can explore many many levels deep
We want to reduce the pyramids by showing the structures.
Find the vertical presentation confusing.
Generally having types that are diffed, maybe on their own line.
Conclusion:
#45893 #38836
any
typeToString
unresolved
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Type Display Comparison
https://gist.github.com/orta/f80db73c6e8211211e3d224a5ab47624
#45786
Improving error messages by thinking about them strucutrally.
Interesting approach: two column approach.
Everything goes through the same diagnostic output pipeline.
Big win would be to introduce newlines.
Pitch: not something we'd want to do by default, but maybe something we could put into
tsc --init
.Lots of stuff becomes possible once you give this a thought.
Examples are conveniently not long lines.
Also, wrapping?
Only should do stuff like this if the objects are big enough.
Feels like there's a lot of stuff we could have benefitted from where the diagnostic system would be "lazy", and supported formatting.
Aren't we already agreed on the
These might look good in theory, but not be in practice.
Inspecting the width of the console?
When we explore constraints of types, we can explore many many levels deep
We want to reduce the pyramids by showing the structures.
Find the vertical presentation confusing.
Generally having types that are diffed, maybe on their own line.
Conclusion:
Type Display for Unresolved Symbols
#45893
#38836
any
.any
" type, it collapses unions toany
.any
? Could be its own type.typeToString
probably.any
s that you get from different contexts.unresolved
?The text was updated successfully, but these errors were encountered: