Closed
Description
Bug Report
π Search Terms
typeof syntax missing semicolon generic
π Version & Regression Information
This changed between versions 4.6.2 and 4.7.0-beta
β― Playground Link
Playground link with relevant code
π» Code
This is a minimal repro, for a real-world example of a breakage, see https://raw.githubusercontent.com/pmndrs/react-spring/master/packages/types/interpolation.d.ts
interface Example {
(a: number): typeof a
<T>(): void
}
π Actual behavior
Syntax errors:
Type 'number' has no signatures for which the type argument list is applicable.
Return type of call signature from exported interface has or is using private name 'T'.
';' expected.
π Expected behavior
No syntax errors