2018-01-10 02:15:08 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////const f = function(): number {
|
|
|
|
//// await Promise.resolve(1);
|
|
|
|
////}
|
|
|
|
|
|
|
|
verify.codeFix({
|
2020-04-02 19:06:14 +02:00
|
|
|
index: 1,
|
2018-01-10 02:15:08 +01:00
|
|
|
description: "Add async modifier to containing function",
|
|
|
|
newFileContent:
|
|
|
|
`const f = async function(): Promise<number> {
|
|
|
|
await Promise.resolve(1);
|
|
|
|
}`,
|
|
|
|
});
|