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