-
Notifications
You must be signed in to change notification settings - Fork 557
Fix missing types #890
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
Fix missing types #890
Conversation
@danmontgomery thanks for the PR, but from my reading of this npm document: https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file It seems that I'm open to arguments that I'm wrong, but this is the best source I could find on how |
@brendandburns That's true, except when publishing a typescript library... "production" in this case are users of the package (anyone adding @kubernetes/client-node to their package.json). With these types not included in https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#dependencies The alternative (https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#publish-to-types) would be to submit a PR to https://github.com/DefinitelyTyped/DefinitelyTyped declaring type dependencies :) |
@danmontgomery thanks for the additional details. I'm ok to merge this. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: brendandburns, danmontgomery The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@brendandburns thanks for fixing both typescript issues (Im referring to the types dependencies). When can we expect a new version? We are eager to start working with the library and this is currently a show stopper for us :-) |
Any news on the release? |
This fixes compilation errors introduced when types all moved to devDependencies - described in #883
By default, there will still be some errors because of default imports, which are all fixed by setting
esModuleInterop
to true (maybe worth documenting, or addressing in a separate PR?)Before:
After: