TypeScript/tests/baselines/reference/tsxFragmentErrors.types
2017-10-17 09:38:23 -07:00

24 lines
439 B
Text

=== tests/cases/conformance/jsx/file.tsx ===
declare module JSX {
>JSX : any
interface Element { }
>Element : Element
interface IntrinsicElements {
>IntrinsicElements : IntrinsicElements
[s: string]: any;
>s : string
}
}
declare var React: any;
>React : any
<>hi</div> // Error
><>hi</div> // Error<>eof // Error : JSX.Element
><>hi</div> : JSX.Element
<>eof // Error
><>eof // Error : JSX.Element