futurGH / ts-to-jsdoc

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

Thank you #8

Closed ScreamZ closed 2 years ago

ScreamZ commented 2 years ago

Just wanted to thank you, i can now say fuck to any anti-typescript people without problems and really quickly. Ima write an article on that ahahah

liorGameDev commented 2 years ago

I would like to say Thank you as well for the idea. Can you pls add an example of how to use it with loading a file and not just a string? Or how to generate a whole .ts project with it? @futurGH

ScreamZ commented 2 years ago

npx ts-to-jsdoc <path to fodler or file> you can also use --o to specify target folder of compiled file. Take care doesn't work well with .tsx files.

futurGH commented 2 years ago

I would like to say Thank you as well for the idea. Can you pls add an example of how to use it with loading a file and not just a string? Or how to generate a whole .ts project with it? @futurGH

You can call ts-to-jsdoc directly from the command line if you have the package installed, passing it a file or directory path. See the "Command Line" example in the README for documentation on flags & options you can use.