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

typescript error #77

Open
prasadshun opened this issue Nov 17, 2022 · 0 comments
Open

typescript error #77

prasadshun opened this issue Nov 17, 2022 · 0 comments

Comments

@prasadshun
Copy link

Screenshot 2022-11-17 at 3 22 35 PM

Hey there, here's the error I'm getting on typescript.

Argument of type 'import("./node_modules/axios/index").AxiosInstance' is not assignable to parameter of type 'import(./node_modules/cachios/node_modules/axios/index").AxiosInstance'.
The types of 'defaults.headers.common' are incompatible between these types.
Type 'Partial<RawAxiosHeaders & MethodsHeaders & CommonHeaders>' is not assignable to type 'AxiosRequestHeaders'.
Index signatures are incompatible.
Type 'AxiosHeaderValue | undefined' is not assignable to type 'string | number | boolean'.
Type 'undefined' is not assignable to type 'string | number | boolean'.ts(2345)

Any help would be appreciated.

Version:
"cachios": "^4.0.0"
"axios": "^1.1.3",
"typescript": "4.5.4",

Node Version: v16.18.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant