-
-
Notifications
You must be signed in to change notification settings - Fork 726
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
Missing whitespace in type parameters (beta) #2882
Comments
Well that's unfortunate, switching formatters shouldn't have resulted in different generated output... didn't think I needed to test rendering for that change. |
I ran master/beta through a visual regression after that change and it seems to be matching now (ignoring the rendering artifacts that always show up as differences for some reason) |
This should hopefully help avoid issues like #2882 creeping in while also remaining small enough that it isn't a pain to maintain.
There are more places this is happening - various I wouldn't be surprised if there are other lurkers of this type. (This one showed up for me when something rendered as a variable with methods -- the methods were listed as |
I have only seen it in typeDetails file. Noticing the pattern, ...
|
Turns out there is a dprint bug for this: dprint/dprint-plugin-typescript#476 |
|
Search terms
type parameters, whitespace, spacing
Expected Behavior
There should be spaces in type parameter declarations
Actual Behavior
They were removed from src/lib/output/themes/default/partials/typeParameters.tsx in cfef3d7, causing type parameters to glomp together with their extends, making the result unreadable.
Steps to reproduce the bug
Document something with a type parameter with an extends
Environment
The text was updated successfully, but these errors were encountered: