-
Notifications
You must be signed in to change notification settings - Fork 889
Conversation
@ajafff is it possible to decouple this from the TS 2.6 upgrade? Is |
@adidahiya sure, I just need to add an assertion. We already use it in |
@adidahiya it now works with ts@2.5, PTAL |
thanks! |
I'm afraid this new rule triggers a false alarm when someone imports an interface from a type information package, for example in
In a
Thank you for creating and maintaining this package! |
@balassy are you not also using the package |
@adidahiya I am facing a similar but not directly relevant problem. When writing a AWS lambda function, the aws-sdk dependency is provided by the lambda container. It is not necessary to add it as an explicit dependency of the function. http://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html. Ideally we could disable the implicit package check just for this case. Nevermind, I see the solution is to include devDependencies, since I have aws-sdk listed there. |
I have to admit this is a very special situation: my project contains AWS Lambda functions implemented in TypeScript, which are basically callback functions, that will be called by AWS. They don't have any dependencies, so I don't have any So basically I am creating a plugin, and what I import is only the input-output definition of the interface defined by the hosting environment. (Actually the |
@balassy I would expect the Can you to please report that in the DefinitelyTyped repo (and send a PR)? It should be possible to detect type-only imports without the type checker. They will be elided during compilation and can be excluded from the check. |
I've checked the Unfortunately I was not able to figure out how to let the TypeScript compiler aware of the type definitions in that package instead of using Thanks, Klaus! |
We have the project structure like this:
(deep of tree and tree structure maybe different - it is example to show that the component may has self |
PR checklist
Overview of change:
[new-rule]
no-implicit-dependencies
Fixes: #3235
Is there anything you'd like reviewers to focus on?
CHANGELOG.md entry: