// @filename: file.tsx // @jsx: preserve // @strict: true // @noLib: true // @skipLibCheck: true // @libFiles: react.d.ts,lib.d.ts import React = require('react'); interface Props { a: number; b: number; c?: number; d?: number; } const props: Props = { a: 1, b: 1 }; const Foo = (props: Props) =>
{ props.a }
; // ok const a1 = ; const a2 = ; // error const b1 = ; const b2 = ; const b3 = ; const b4 = ;