648bd6e9e0
* Skip more lib checks, improve test execution time a bit more * Change complexRecursiveCollections to still check * Remove way more
24 lines
No EOL
484 B
TypeScript
24 lines
No EOL
484 B
TypeScript
// @filename: file.tsx
|
|
// @jsx: preserve
|
|
// @module: amd
|
|
// @noLib: true
|
|
// @skipLibCheck: true
|
|
// @libFiles: react.d.ts,lib.d.ts
|
|
|
|
import React = require('react');
|
|
|
|
const Foo = (props: any) => <div/>;
|
|
// Should be OK
|
|
const foo = <Foo />;
|
|
|
|
|
|
// Should be OK
|
|
var MainMenu: React.StatelessComponent<{}> = (props) => (<div>
|
|
<h3>Main Menu</h3>
|
|
</div>);
|
|
|
|
var App: React.StatelessComponent<{ children }> = ({children}) => (
|
|
<div >
|
|
<MainMenu/>
|
|
</div>
|
|
); |