We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
interface I { [key: string]: I (...args: any[]): I } declare let y: string | I y.toUpperCase() // Error
Expected: No error: both string and I separately allow property access of toUpperCase.
string
I
toUpperCase
Actual: Error, "Property 'toUpperCase' does not exist on type 'I'.