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

No Declaration File #68

Open
krichey15 opened this issue Nov 9, 2019 · 1 comment
Open

No Declaration File #68

krichey15 opened this issue Nov 9, 2019 · 1 comment

Comments

@krichey15
Copy link

When I import react-cookies into my project.

Like this

import cookies from 'react-cookies';

I get an error that reads:

Could not find a declaration file for module 'react-cookies'. '.../node_modules/react-cookies/build/cookie.js' implicitly has an 'any' type.
Try npm install @types/react-cookies if it exists or add a new declaration (.d.ts) file containing declare module 'react-cookies';ts(7016)

@bukinoshita
Copy link
Owner

you can declare on your on codebase

create a react-cookies.d.ts and paste this

declare module 'react-cookies'`

I'll rewrite the package in ts #72

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

2 participants