We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a3ff45 commit e90679cCopy full SHA for e90679c
tests/baselines/reference/convertToAsyncFunction/convertToAsyncFunction_IgnoreArgs3.ts
@@ -0,0 +1,12 @@
1
+// ==ORIGINAL==
2
+
3
+function /*[#|*/f/*|]*/(): Promise<void> {
4
+ return fetch('https://typescriptlang.org').then( () => console.log("almost done") ).then( () => console.log("done") );
5
+}
6
+// ==ASYNC FUNCTION::Convert to async function==
7
8
+async function f(): Promise<void> {
9
+ await fetch('https://typescriptlang.org');
10
+ console.log("almost done");
11
+ return console.log("done");
12
0 commit comments