-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
Unused export inside exported namespace not reported #705
Comments
Unfortunately namespaces are not supported yet. Just looked into it and did some preliminary work, but it's not trivial. |
@webpro if namespaces are not supported why is there an issue type |
Good question, I need to document this better. There's two different types of namespaces here:
|
Is it ok if I open a PR for this, we are loving knip at work and will like to contribute. |
Absolutely! Let me know if you need any assistance. |
I have created a workspace to replicate this issue:
I have a namespace
Parent
with 2 exportsChild1
andChild2
. While Child1 is used inApp.tsx
.Child2
is unsed. Knip is not reportingChild2
as unused.I have added issue types
nsExports
andnsTypes
while running knip. Still not getting the unused ExportThe text was updated successfully, but these errors were encountered: