futurGH / ts-to-jsdoc

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

Adjust transpileFile to allow use in browser #46

Closed smacpherson64 closed 3 months ago

smacpherson64 commented 3 months ago

This PR is an attempt to allow transpileFile to work directly in the browser.

This is done by using an in memory file system for the typescript project and using the passed in filename directly.

Resolves https://github.com/futurGH/ts-to-jsdoc/issues/45 Related to https://github.com/futurGH/ts-to-jsdoc/pull/47 Closes #47

futurGH commented 3 months ago

Thanks! This will be published as 2.2.0.

smacpherson64 commented 3 months ago

Awesome, sincerely glad it worked out! I updated the concept to directly use ts-to-jsdoc and it is working as desired in the browser.