* Do not rely on ElementAttributeProperty if it is not present * Fix bug * Fix nits and lint
14 lines
263 B
TypeScript
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
|