a734b84ed0
Even for types. Based on #42126, but without the namespace-specific error message.
18 lines
566 B
Plaintext
18 lines
566 B
Plaintext
tests/cases/compiler/test.tsx(9,17): error TS2552: Cannot find name 'MyElement'. Did you mean 'Element'?
|
|
|
|
|
|
==== tests/cases/compiler/test.tsx (1 errors) ====
|
|
declare module JSX {
|
|
interface IntrinsicElements {
|
|
[s: string]: any;
|
|
}
|
|
}
|
|
|
|
export class AppComponent {
|
|
render(createElement) {
|
|
return <div />;
|
|
~~~
|
|
!!! error TS2552: Cannot find name 'MyElement'. Did you mean 'Element'?
|
|
!!! related TS2728 /.ts/lib.dom.d.ts:4792:13: 'Element' is declared here.
|
|
}
|
|
} |