Skip to content

Make @types packages dev dependencies. #434

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

Closed

Conversation

hdeshev
Copy link

@hdeshev hdeshev commented Feb 24, 2017

I hit a typing clash with @types/lodash and TypeScript 2.2.1 today.

While that is definitely a problem in the lodash typings, I realized that I wasn't supposed to even have @types/lodash in my project modules. I found out typedoc installs those, which is completely unnecessary.

This PR moves all @types packages to devDependencies. Probably related to #432.

Do not install them in users' projects.
@aciccarello
Copy link
Collaborator

@hdeshev thanks for the contribution but I don't believe this is the fix that is required.

As commented in the issue you linked

I believe the problem lies with @types/lodash (for its mis-matching WeakMap interface). It's just that previous versions of TypeScript did not catch the error

We already have about half a dozen issues/PRs related to this issue which you can view for reference.

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

Successfully merging this pull request may close these issues.

2 participants