dillonkearns / elm-typescript-interop

Generate TypeScript declaration files for your elm ports!
BSD 3-Clause "New" or "Revised" License
165 stars 13 forks source link

Ignore unimported modules #11

Open Birowsky opened 6 years ago

Birowsky commented 6 years ago

In trying to generate types for my project, I faced this error:

image

See, that file, altho is an invalid module, is not imported anywhere in the project. Or, should I say, it's not reachable from the main module through the import chain, therefore, is not relevant to the project.

So, ideally, elm-typescript-interop would ignore the modules unreachable from the main one.

Thanx!

dillonkearns commented 6 years ago

Thank you for the request! I may not get to this for a while, but I'll keep you posted 👍