Issue
I am getting this error: TS2339: Property 'subscribe' does not exist on type 'void'.
Solution
Change the return type of httpService.gameDetails
to the object that you created called Game
instead of void
, also return the response. I think it's implicitly marking as void becase you won't be returning anything in your gameDetails method.
Answered By - HassanMoin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.