-
-
Notifications
You must be signed in to change notification settings - Fork 38
Typescript support #59
Comments
I don't think there's much chance of this module supporting TypeScript directly. It would be a huge undertaking because it operates on a JavaScript AST today, and TypeScript has too much API surface to cover for a small module. You could try https://www.npmjs.com/package/depcheck. For this sort of functionality to work with TypeScript, it's probably better as a new module, where you can load the TypeScript project from the |
I agree with the above. There could probably be some kind of plugin approach that made this module work with ES6/Babel, Typescript, Coffeescript though converting the code in such a way that the AST needed is provided. I think such an approach would be pretty good to look into though as not only Typescript projects but also react projects with their JSX-files and projects that in other ways are reliant on Babel to work also needs this kind of functionality – and that's getting quite common. So while such converters would not be provided in this package, I think it makes sense to enable others to plug such converters into this package. |
Closing in reference to #60. Should create a |
I use 'intall-missing' module which has 'dependency-check' dependency, i want to use to typescript files, but this module doesn't support typescript yet.
The text was updated successfully, but these errors were encountered: