afc41f095d
* stash * add surmise for return type * add support for more case * add more test case * add more testcase and fix all test * fix changed diagnosis * fix broken test case * add more case * rename quickfix * fix conflict * fix fix desc * fix semi * Avoid replace brace with paren * Split fix all action * Add return work in same line * fix test cases * rename baseline * refactor and handle comment * Support semi * make helper internal
17 lines
500 B
TypeScript
17 lines
500 B
TypeScript
/// <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([
|
|
{ description: 'Add a return statement' },
|
|
{ description: 'Remove block body braces' },
|
|
{ description: `Infer type of 'props' from usage` }
|
|
]);
|