Skip to content

JSDoc types don't parse, even outside JSDoc #139

Closed
@sandersn

Description

@sandersn
Member

See tests/cases/conformance/jsdoc/jsdocDisallowedInTypescript.ts

Activity

ernieIzde8ski

ernieIzde8ski commented on Mar 13, 2025

@ernieIzde8ski

Excuse my ignorance, but why JSDoc? Microsoft has also made @microsoft/tsdoc; wouldn't it be useful to support that directly instead?

jakebailey

jakebailey commented on Mar 13, 2025

@jakebailey
Member

JSDoc is a syntax, TSDoc is a subset of it (which also explicitly ignores types in favor of TS type annotations, which will not work in JS files, where JSDoc types are the only choice).

sandersn

sandersn commented on May 16, 2025

@sandersn
MemberAuthor

This is fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sandersn@jakebailey@ernieIzde8ski

        Issue actions

          JSDoc types don't parse, even outside JSDoc · Issue #139 · microsoft/typescript-go