Over in the https://github.com/elastic/kibana repo, we are considering what tool to use for an automated API documentation system. The options we are evaluating are this library, and api-extractor plus a custom api-documenter. You can view the relevant RFC section here.
I have a few questions I was hoping you could help us with as we debate these two approaches.
One of the biggest concerns we have is how much maintenance will be required with the ts-morph approach. The question is two-fold:
It looks like you've been able to keep up with new typescript versions pretty quickly. Would you accept upstream contributions if this was taking longer than expected?
We appreciate any guidance or information you can give us. Thanks!
Hi @stacey-gammon,
Yup, I would definitely accept contributions on upgrading TypeScript.
Since this is analysis only and you are concerned about performance, then it might be useful to come up with a test to see how much slower using ts-morph is compared to just the compiler API (I'm not sure what the numbers are). Also, perhaps using @ts-morph/bootstrap might be an option.
Most helpful comment
Hi @stacey-gammon,
Yup, I would definitely accept contributions on upgrading TypeScript.
Since this is analysis only and you are concerned about performance, then it might be useful to come up with a test to see how much slower using ts-morph is compared to just the compiler API (I'm not sure what the numbers are). Also, perhaps using @ts-morph/bootstrap might be an option.