TypeScript/tests/cases/fourslash/codeFixReturnTypeInAsyncFunction15.ts

11 lines
299 B
TypeScript

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