In typescript what is the simplest way to make a function wait for a callback function within?
public isLoggedIn() : boolean
{
myCallBackFunction.getItem(access_token).then((value) => {
return value;
});
}
This of course doesn't compile, but how do I make it wait for the result?