How to fix Cannot use 'await' in non-async function in TypeScript | DevErrors