* 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
15 lines
364 B
TypeScript
15 lines
364 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
////const f: () => Promise<number | string> = () => {
|
|
//// await Promise.resolve('foo');
|
|
////}
|
|
|
|
verify.codeFix({
|
|
index: 2,
|
|
description: "Add async modifier to containing function",
|
|
newFileContent:
|
|
`const f: () => Promise<number | string> = async () => {
|
|
await Promise.resolve('foo');
|
|
}`,
|
|
});
|