-
Notifications
You must be signed in to change notification settings - Fork 757
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
@types/node in direct dependencies #1274
Comments
@berhalak, with some research, I found when the dependency was added. I do think it does belong in dependencies. @types/node isn't needed just for the maintainers/CI, it is needed by any users of the stripe-node typescript types, since the types types in For a concrete example of why $ npm init
$ npm install stripe
$ npm install typescript
$ node_modules/.bin/tsc --init // index.ts
import Stripe from "stripe";
const stripe = new Stripe("sk_test_xyz", {
apiVersion: "2020-08-27",
httpAgent: "foo", // This should report a type error
}); $ node_modules/.bin/tsc index.ts This will produce the correct type error only if |
Anyway I think I'm going to close this out as we are not going to take any action, but I wanted to ask: does the presence of |
Hi,
Is there any reason why package @types/node is included as a direct dependency and not as a devDependencies in package.json?
The text was updated successfully, but these errors were encountered: