The type argument for type parameter 'T' cannot be inferred from the usage. Consider specifying the
type arguments explicitly.
Type argument candidate 'HttpEvent<{}>' is not a valid type argument because it is not a supertype of candidate 'HttpResponse'.
Type 'HttpResponse' is not assignable to type 'HttpResponse<{}>'.
Type 'any' is not assignable to type '{}'.
And sure enough. If i change:
HttpResponse<any>'
to:
HttpResponse<{}>
The error is resolved. It does however not explain the error, as the HttpResponse have not been assigned any data type, IMO 'any' could be used instead of hardtyping it to '{}'.
What type of issue are you creating?
What version of this module are you using?
[2.5.5 ] Other
"loopback": "3.18.3"
The SDK build process is successful, however any attempt to ng serve or build triggers an error referencing the SDK file:
client/src/app/shared/sdk/services/core/base.service.ts (150,14)
With the error message:
And sure enough. If i change:
HttpResponse<any>'
to:HttpResponse<{}>
The error is resolved. It does however not explain the error, as the HttpResponse have not been assigned any data type, IMO 'any' could be used instead of hardtyping it to '{}'.
Maybe someone have a better explanation?