futurGH / ts-to-jsdoc

Transpile TypeScript code to fully compatible JavaScript + JSDoc comments.
MIT License
181 stars 17 forks source link

For a single input .ts file, imports in the .ts file cause an error, which does indicate what to do #14

Closed FranzZemen closed 1 year ago

FranzZemen commented 1 year ago

Not a showstopper, but would be helpful for new users.

Use case: I was generating .js file from a single .ts file. It failed with an ambiguous error. The file had imports, and I presumed that was the issue. The directory was self-containing i.e. .ts in this directory only imported from themselves or from node. So I used the directory option and that worked.

Fix suggested:

futurGH commented 1 year ago

Definitely worth supporting imports, I think it makes more sense to track this on #15.