We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On
reactive-angular-course/src/app/services/courses.service.ts
Line 39 in 8fd3888
this.http.get<{payload: Course[]}>
so you need to to do additional casting with
Line 41 in 8fd3888
map(res => res.payload)
and it would already have the correct type.
Same goes for all the other HTTP requests.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
On
reactive-angular-course/src/app/services/courses.service.ts
Line 39 in 8fd3888
it should be
so you need to to do additional casting with
reactive-angular-course/src/app/services/courses.service.ts
Line 41 in 8fd3888
as TypeScript would already know the type of the payload, so you can do
and it would already have the correct type.
Same goes for all the other HTTP requests.
The text was updated successfully, but these errors were encountered: