TypeScript/tests/cases/fourslash/codeFixReturnTypeInAsyncFunction4.ts

11 lines
271 B
TypeScript

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