Add baseline

This commit is contained in:
Benjamin Lichtman 2018-09-17 15:52:59 -07:00
parent 1a3ff452c1
commit e90679ce6b

View File

@ -0,0 +1,12 @@
// ==ORIGINAL==
function /*[#|*/f/*|]*/(): Promise<void> {
return fetch('https://typescriptlang.org').then( () => console.log("almost done") ).then( () => console.log("done") );
}
// ==ASYNC FUNCTION::Convert to async function==
async function f(): Promise<void> {
await fetch('https://typescriptlang.org');
console.log("almost done");
return console.log("done");
}