TypeScript/tests/cases/fourslash/codeFixReturnTypeInAsyncFunction11.ts

11 lines
305 B
TypeScript

/// <reference path='fourslash.ts' />
// @target: es2015
////async function fn(): PromiseLike<string> {}
verify.codeFix({
index: 0,
description: [ts.Diagnostics.Replace_0_with_Promise_1.message, "PromiseLike<string>", "string"],
newFileContent: `async function fn(): Promise<string> {}`
});