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
In typescript 4.7.4, the above compiles just fine.
For our particular case, we can workaround it by using the alternative generics in TSX workaround of using a comma but that doesn't apply to all cases.
const foo = <T,>(t: T) => null;
The text was updated successfully, but these errors were encountered:
Thanks for the report. It looks like this changed relatively recently: microsoft/TypeScript#47062. This will need to be changed in esbuild as well to match.
In esbuild 0.14.49, the following code in a tsx file
throws the following error
In typescript 4.7.4, the above compiles just fine.
For our particular case, we can workaround it by using the alternative generics in TSX workaround of using a comma but that doesn't apply to all cases.
The text was updated successfully, but these errors were encountered: