When working with a variable in my code
I have declared a private $http:ng.IHttpService;
Next, I am making a get call using the following code snippet:
this.$http({
url: url
skipAuthorization: true,
method: 'GET',
params:dataToBeSent
})
The skipAuthorization flag is essential for angular-jwt, preventing it from sending the jwt.
However, TypeScript throws an error that reads as follows:
Error TS2345: Argument of type '{ url: string; skipAuthorization: boolean; method: string; params: { ..' is not assignable to parameter of type 'IRequestConfig'. Object literal may only specify known properties, and 'skipAuthorization' does not exist in type 'IRequestConfig'.
To resolve this error, what steps should I take?