Skip to content

Coexistence with the compiler's JSDoc-in-JavaScript feature #23

Open
@octogonz

Description

@octogonz

I'm moving @seanpoulter 's question into its own issue:

What's the long term plan for TSDoc? Will we be able to use it to annotate vanilla JavaScript like the current JSDoc support? In those cases the it's crucial to be able to declare an interface in the comments or document @param properties.

Some background: The TypeScript compiler allows plain *.js files to be compiled alongside with *.ts files, and it will parse certain JSDoc type annotations and incorporate them into the type system.

Some design questions:

  • Beyond the TSDoc design goal of maintaining the look+feel of JSDoc (and CommonMark), does JSDoc-in-JavaScript imply any special considerations for TSDoc syntax?

  • Would TSDoc and JSDoc-in-JavaScript really need to be parsed by the same documentation pipeline?
    (Or are will the *.js files generally be legacy libraries or third-party dependencies?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    general discussionNot a bug or enhancement, just a discussiontool scenarioIncludes a writeup about a tool that might use TSDoc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions