Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable ts5.3 full jsdoc parsing with alternate syntax #143

Open
ghigi123 opened this issue Dec 13, 2023 · 0 comments
Open

Enable ts5.3 full jsdoc parsing with alternate syntax #143

ghigi123 opened this issue Dec 13, 2023 · 0 comments

Comments

@ghigi123
Copy link

ghigi123 commented Dec 13, 2023

Hello !

Currently using ts-patch in a library to copy jsdoc in a string within an annotation.
My tsconfig.json file looks like

    "plugins": [
      {
        "transform": "./src/reflection/add-jsdoc-to-function-configs.ts"
      }
    ]

So it does not refer a package name but directly a source file. It uses the really useful transformer entry point.

Have seen your recent pull request about the 5.3 support and seen this line in plugin-creator.ts

this.needsTscJsDocParsing = this.plugins.some(plugin => plugin.packageConfig?.tscOptions?.parseAllJsDoc === true);

Wondered if we could enable the support of full jsdocs parsing using a syntax like

    "plugins": [
      {
        "transform": "./src/reflection/add-jsdoc-to-function-configs.ts",
        "parseAllJsDoc": true
      }
    ]

where the property parseAllJsDoc could be a direct child of the PluginConfig interface ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant