// @filename: file.tsx // @jsx: preserve // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts import React = require('react'); interface OptionProp { x?: 2 y?: boolean } class Opt extends React.Component { render() { return
Hello
; } } const obj: OptionProp = {}; const obj1: OptionProp = { x: 2 } // OK let p = ; let y = ; let y1 = ; let y2 = ; let y3 = ;