2020-04-02 01:27:33 +02:00
|
|
|
// @filename: foo.tsx
|
|
|
|
// @jsx: preserve
|
|
|
|
// @noLib: true
|
|
|
|
// @skipLibCheck: true
|
|
|
|
// @libFiles: react.d.ts,lib.d.ts
|
|
|
|
|
|
|
|
import React = require('react');
|
|
|
|
|
|
|
|
type TypeProps = { foo?: boolean; };
|
|
|
|
interface InterfaceProps { foo?: boolean; }
|
|
|
|
|
|
|
|
function Foo<T>() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
<>
|
2020-04-02 19:38:31 +02:00
|
|
|
{/* JsxSelfClosingElement */}
|
2020-04-02 01:27:33 +02:00
|
|
|
<Foo<unknown> />
|
|
|
|
<Foo<string> />
|
|
|
|
<Foo<boolean> />
|
|
|
|
<Foo<object> />
|
|
|
|
<Foo<null> />
|
|
|
|
<Foo<any> />
|
|
|
|
<Foo<never> />
|
|
|
|
<Foo<undefined> />
|
|
|
|
<Foo<TypeProps> />
|
|
|
|
<Foo<InterfaceProps> />
|
2020-04-02 19:38:31 +02:00
|
|
|
|
|
|
|
{/* JsxOpeningElement */}
|
|
|
|
<Foo<unknown>></Foo>
|
|
|
|
<Foo<string>></Foo>
|
|
|
|
<Foo<boolean>></Foo>
|
|
|
|
<Foo<object>></Foo>
|
|
|
|
<Foo<null>></Foo>
|
|
|
|
<Foo<any>></Foo>
|
|
|
|
<Foo<never>></Foo>
|
|
|
|
<Foo<undefined>></Foo>
|
|
|
|
<Foo<TypeProps>></Foo>
|
|
|
|
<Foo<InterfaceProps>></Foo>
|
|
|
|
</>
|