14 lines
349 B
TypeScript
14 lines
349 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
////const f: () => Promise<number | string> = () => {
|
||
|
//// await Promise.resolve('foo');
|
||
|
////}
|
||
|
|
||
|
verify.codeFix({
|
||
|
description: "Add async modifier to containing function",
|
||
|
newFileContent:
|
||
|
`const f: () => Promise<number | string> = async () => {
|
||
|
await Promise.resolve('foo');
|
||
|
}`,
|
||
|
});
|