// ==ORIGINAL== function /*[#|*/f/*|]*/():Promise { return fetch('https://typescriptlang.org').catch(rej => console.log(rej)); } // ==ASYNC FUNCTION::Convert to async function== async function f():Promise { try { return await fetch('https://typescriptlang.org'); } catch (rej) { return console.log(rej); } }