Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6364

'async' modifier cannot be used here in typescript react

$
0
0

I am getting an error in aync, that the async modifier cannot be used here:

private async getValue= (acc: Access): void => {             await this.service.getForm('');        }

Seems like I am doing something wrong in the method declaration.

private async getValue= (acc: Access): void => { 

Viewing all articles
Browse latest Browse all 6364

Trending Articles