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
There are a few instances where this occurs that dprint-plugin-typescript already handles. In this case, here is the relevant code in TypeScript and it's specific to mts and cts files:
dsherret
changed the title
Exclude single-argument generics arrow functions from "typeParameters.trailingCommas" option
Keep trailing comma on arrow function type parameter in mts and cts files
Jun 5, 2022
Uh oh!
There was an error while loading. Please reload this page.
Starting with TypeScript 4.5, the following code now throws an error.
To fix this code, it should be rewritten as follows either:
dprint formats the second example code to the original unfixed code.
Reference:
The text was updated successfully, but these errors were encountered: