Thanks a lot for this.
The toast is now displaying, but I’m getting a red line under async presentAlert()
.
This is the error appearing now in VS code when I hover over that line:
An async function or method must return a ‘Promise’. Make sure you have a declaration for ‘Promise’ or include ‘ES2015’ in your
--lib
option.