Open O4epegb opened 3 years ago
I also encountered the same symptom. In my case, the type inference in the setCookie option did not work, so I solved the problem by adding manually to the project I was using.
yarn add -D @types/cookie @types/express
~However, I think it can be fixed by adding include node_modules to tsconfig at nookies.~
"include": ["src", "node_modules"]
How would that help?
I don't think it will because this packages are not even installed when you install nookies
, so it does not matter what you include, you would still need to install them manually.
In my understanding this is not Typescript related, more like NPM related thing
I don't think it will because this packages are not even installed when you install nookies, so it does not matter what you include, you would still need to install them manually.
In my understanding this is not Typescript related, more like NPM related thing
You were right. I was wrong.
So, I think the solution is to move the some definition package in devDependencies. If so, I'm thinking of issuing a PR.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I think it's still actual
nookies
functions depends on typings from other libraries, for example:But it seems like they are not installed automatically because they are in
devDependencies
:Maybe they should be moved to the regular
dependencies
instead? What is the best practice here?