Skip to content

Should it be an error to add JSDoc visibility modifiers to #privateFields? #36080

@DanielRosenwasser

Description

@DanielRosenwasser
// @ts-check

class C {
    /**
     * @type {number | undefined}
     * @public
     */
    #foo;
}

new C().#foo;

Same for all public, private, protected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JavaScriptThe issue relates to JavaScript specificallyEffort: CasualGood issue if you're already used to contributing to the codebase. Harder than "good first issue".Fix AvailableA PR has been opened for this issueHelp WantedYou can do thischeckJsRelates to checking JavaScript using TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions