// @filename: file.tsx // @jsx: preserve // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts import React = require('react'); interface Prop { a: number, b: string, children: string | JSX.Element | (string | JSX.Element)[]; } class Button extends React.Component { render() { return (
My Button
) } } function AnotherButton(p: any) { return

Just Another Button

; } function Comp(p: Prop) { return
{p.b}
; } // OK let k1 =