TypeScript/tests/cases/compiler/tsxTypeArgumentPartialDefinitionStillErrors.ts
Wesley Wigham 6b7bf5e22c
Do not rely on ElementAttributeProperty if it is not present (#22936)
* Do not rely on ElementAttributeProperty if it is not present

* Fix bug

* Fix nits and lint
2018-03-29 16:19:55 -07:00

14 lines
263 B
TypeScript

// @jsx: preserve
// @filename: file.tsx
declare namespace JSX {
interface Element {
render(): Element | string | false;
}
}
function SFC<T>(props: Record<string, T>) {
return '';
}
<SFC<string> prop={1}></SFC>; // should error