2020-04-02 19:06:14 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//@Filename: file.tsx
|
|
|
|
//// declare module JSX {
|
|
|
|
//// interface Element { }
|
|
|
|
//// interface IntrinsicElements {
|
|
|
|
//// }
|
|
|
|
//// interface ElementAttributesProperty { props; }
|
|
|
|
//// }
|
|
|
|
//// class Comp { props: { t: () => number } }
|
|
|
|
//// var x = <Comp t={() => { 1 }} />;
|
|
|
|
|
|
|
|
verify.codeFixAvailable([
|
2020-04-28 09:44:36 +02:00
|
|
|
{ description: ts.Diagnostics.Add_a_return_statement.message },
|
|
|
|
{ description: ts.Diagnostics.Remove_braces_from_arrow_function_body.message },
|
2020-04-02 19:06:14 +02:00
|
|
|
{ description: `Infer type of 'props' from usage` }
|
|
|
|
]);
|