I want to create a variable in typescript define as "getter", but the contect return be async like this;
class MyClass {
async get isValid: boolean {
return await myService.get("endPoint").value;
}
}
But I'm getting the following error:
'async' modifier cannot be used here.
In typescript, it is possible to create asynchronous getters?