ae73a9141d
* Bring jsx type resolution inline with normal objects, move jsx attribute property ignorign into relationship check * Improved errors and reordered members * Always use inferrential mode for jsx pass * Add some missing skipLibChecks * New check mode instead of odd type mapper * Do not enable object literal freshness checks on jsx spreads * Fix minor style nits * Update order of type for test * Accept corrected baseline
18 lines
No EOL
339 B
TypeScript
18 lines
No EOL
339 B
TypeScript
// @filename: file.tsx
|
|
// @jsx: preserve
|
|
// @module: amd
|
|
// @noLib: true
|
|
// @strictNullChecks: true
|
|
// @skipLibCheck: true
|
|
// @libFiles: react.d.ts,lib.d.ts
|
|
|
|
import React = require('react');
|
|
|
|
const Foo = (props: any) => null;
|
|
|
|
function Greet(x: {name?: string}) {
|
|
return null;
|
|
}
|
|
|
|
const foo = <Foo />;
|
|
const G = <Greet />; |