14 lines
212 B
TypeScript
14 lines
212 B
TypeScript
|
//@filename: file.tsx
|
||
|
//@jsx: react
|
||
|
|
||
|
declare module JSX {
|
||
|
interface Element { }
|
||
|
interface IntrinsicElements {
|
||
|
[s: string]: any;
|
||
|
}
|
||
|
}
|
||
|
declare var React: any;
|
||
|
|
||
|
<>hi</div> // Error
|
||
|
|
||
|
<>eof // Error
|