Wrap Promist to async/await?


im still new to typescript and ionic. I would like to know, how i can wrap the
function “getCurrentPosition” (modul Geolocation) - which returns a promise - to an async function so i can use this with async and await.

must be something like the following example, but this dont seems to work :S:

async getPosition()

return await Geolocation.getCurrentPosition(options);

Thank you :slight_smile: