A tad related to this question, but different.
TSLint complains on this code because it needs a typedef:
private async getTranslations() {
// this.translations is a public variable used by the html
this.translations = await this._languageService.getTranslations('Foo');
}
I updated it to
private async getTranslations() : void { ... }
And this gives me the error:
type 'void' is not a valid async function return in ES5 because it does not refer to a pPromise-compatible constructor value
How can I get this right without removing the async keyword?