Skip to content

Commit e90679c

Browse files
author
Benjamin Lichtman
committed
Add baseline
1 parent 1a3ff45 commit e90679c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)