Comments (5)
Unfortunately namespaces are not supported yet. Just looked into it and did some preliminary work, but it's not trivial.
from knip.
@webpro if namespaces are not supported why is there an issue type nsExport
with description Namespace with export is referenced, but not export itself
from knip.
Good question, I need to document this better.
There's two different types of namespaces here:
- The
import * as NS from '..'
whereNS
is the namespace, which is whatnsExports
and https://knip.dev/guides/namespace-imports is about. - The
namespace
feature of TypeScript (https://www.typescriptlang.org/docs/handbook/namespaces.html) which is not supported yet by Knip.
from knip.
Is it ok if I open a PR for this, we are loving knip at work and will like to contribute.
from knip.
Absolutely! Let me know if you need any assistance.
from knip.
Related Issues (20)
- @public modifier does not work if the whole file is unused HOT 9
- New husky format does not work for binaries without 'npx' HOT 2
- Conditional required import not longer working HOT 10
- Running in production mode doesn't allow for easy tagging of internal-only files (as opposed to internal exports) HOT 4
- Packages re-exported under different name through typescript module declaration HOT 1
- vite-plugin-fast-react-svg integration HOT 2
- Knip doesn't resolve imports in Nuxt projects HOT 3
- circular dependencies making knip stuck HOT 6
- detect unused fields returned by setup function HOT 1
- Add support for electron and electron-vite HOT 1
- npm init @knip/config fails on SVN repository HOT 1
- @types/xxx dependencies reported as unused HOT 5
- Cannot run yarn create @knip/config in workspaces root HOT 1
- Add support for Vue composables unused properties detection HOT 1
- Plz know my โtsconfig.xyz.jsonโ HOT 2
- Umm... name may be offensive to Japanese people HOT 4
- ๐ Issue links are broken HOT 4
- ๐ False positive for `unlisted` when extending a tsconfig file from a package HOT 3
- (PostCSS plugin): Add `postcss` to `referencedDependencies` when using Tailwind CSS with PostCSS HOT 2
- ๐ก Add option to ignore export names using a pattern HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knip.