We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
example
a.ts
import b from "./b"; class a { test(): b { return new b(); } } export default a;
b.ts
import a from "./a"; class b { test(): a { return new a(); } } export default b;
There is no circular reference error at runtime, can exclude such imports?
.madgerc
{ "detectiveOptions": { "ts": { "mixedImports": true, "skipTypeImports": true, "skipAsyncImports": true }, "es6": { "skipTypeImports": true } } }
tsconfig.json
{ "compilerOptions": { "target": "es6", "lib": ["es2015", "es2017", "ES2020", "ES2022", "dom"], "module": "commonjs", "sourceMap": true, "noEmit": true, "strict": true, "noImplicitAny": false, "downlevelIteration": true, "esModuleInterop": true, "experimentalDecorators": true, "allowSyntheticDefaultImports": true, "isolatedModules": true } }
The text was updated successfully, but these errors were encountered:
Madge is based on the implementation of dependency-tree, which uses "detective" packages to analyze the code. For simplicity most of them are just checking the imports. Not the actual code, see e.g. here: https://github.com/dependents/detective-typescript/blob/main/test/test.js
This means that this is not possible to detect.
Sorry, something went wrong.
No branches or pull requests
example
a.ts
b.ts
There is no circular reference error at runtime, can exclude such imports?
.madgerc
tsconfig.json
The text was updated successfully, but these errors were encountered: