648bd6e9e0
* Skip more lib checks, improve test execution time a bit more * Change complexRecursiveCollections to still check * Remove way more
20 lines
No EOL
434 B
TypeScript
20 lines
No EOL
434 B
TypeScript
// @filename: file.tsx
|
|
// @jsx: preserve
|
|
// @module: amd
|
|
// @noLib: true
|
|
// @skipLibCheck: true
|
|
// @libFiles: react.d.ts,lib.d.ts
|
|
|
|
import React = require('react')
|
|
|
|
interface MyComponentProp {
|
|
values: string;
|
|
}
|
|
|
|
function MyComponent<T = MyComponentProp>(attr: T) {
|
|
return <div>attr.values</div>
|
|
}
|
|
|
|
// OK
|
|
let i = <MyComponent values />; // We infer type arguments here
|
|
let i1 = <MyComponent values="Hello"/>; |