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
src/restClient.ts:22:14 - error TS2339: Property 'body' does not exist on type '{ method: string; headers: { "Content-Type": string; Authorization: string; }; }'.
22 config.body = JSON.stringify(data) ~~~~
src/restClient.ts:49:59 - error TS2345: Argument of type 'string' is not assignable to parameter of type '{ [key: string]: any; }'.
49 ${this.baseUrl}${endpoint}?${queryString.stringify(filter)}, ~~~~~~
${this.baseUrl}${endpoint}?${queryString.stringify(filter)}
src/restClient.ts:50:35 - error TS2554: Expected 2 arguments, but got 3.
50 this.getConfig("get", null, cookie) ~~~~~~
src/restClient.ts:74:48 - error TS2554: Expected 2 arguments, but got 1.
74 return fetch(this.baseUrl + endpoint, this.getConfig("delete")).then( ~~~~~~~~~~~~~~~~~~~
src/restClient.ts:12:29 12 getConfig(method: string, data: string) { ~~~~~~~~~~~~ An argument for 'data' was not provided.
The text was updated successfully, but these errors were encountered:
lortschi
No branches or pull requests
src/restClient.ts:22:14 - error TS2339: Property 'body' does not exist on type '{ method: string; headers: { "Content-Type": string; Authorization: string; }; }'.
22 config.body = JSON.stringify(data)
~~~~
src/restClient.ts:49:59 - error TS2345: Argument of type 'string' is not assignable to parameter of type '{ [key: string]: any; }'.
49
${this.baseUrl}${endpoint}?${queryString.stringify(filter)}
,~~~~~~
src/restClient.ts:50:35 - error TS2554: Expected 2 arguments, but got 3.
50 this.getConfig("get", null, cookie)
~~~~~~
src/restClient.ts:74:48 - error TS2554: Expected 2 arguments, but got 1.
74 return fetch(this.baseUrl + endpoint, this.getConfig("delete")).then(
~~~~~~~~~~~~~~~~~~~
src/restClient.ts:12:29
12 getConfig(method: string, data: string) {
~~~~~~~~~~~~
An argument for 'data' was not provided.
The text was updated successfully, but these errors were encountered: