Skip to content
New issue

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

Errors on src/restClient.ts #46

Open
Himadu2000 opened this issue Jul 3, 2020 · 0 comments
Open

Errors on src/restClient.ts #46

Himadu2000 opened this issue Jul 3, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Himadu2000
Copy link
Member

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.

@Himadu2000 Himadu2000 added the bug Something isn't working label Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants