const func1 = <T>() => {}
const func2 = () => {
let b
a = () => {
b = c
b./* | */
}
}
This is full valid code for TypeScript, but not typescriptreact (jsx), <T> is parsed is jsx opening element (AFAIR in jsx it must be changed to <T extends any>).
But I completely have no idea why only in that specific position with that specific assignaments it doesn't work.
Repro:
This is full valid code for TypeScript, but not typescriptreact (jsx),
<T>
is parsed is jsx opening element (AFAIR in jsx it must be changed to<T extends any>
). But I completely have no idea why only in that specific position with that specific assignaments it doesn't work.