aabtop / reify

Reify lets you embed a customized TypeScript runtime within a C++ application.
MIT License
6 stars 0 forks source link

Enable Reify types to have comments associated with them. #26

Closed aabtop closed 3 years ago

aabtop commented 4 years ago

The Reify interface definition should include support for associating comments with the defined types. This way, code generators can access comment information and include that in the generated files so that the information is available in many different forms.

This would, for example, enable TypeScript and C++ code completion tools to automatically display help text when typing out a function call.

aabtop commented 3 years ago

This is done now in 0db5319d8066baa92d05d0cea02e40db74ffb5fd . Though, because we use the TypeScript compiler to generate the ".d.ts" files from the original ".ts" files that Reify generates, the comments unfortunately are not currently carried over into the ".d.ts" files.