Skip to content

JSDoc not viewable on optional fields #775

@avaly

Description

@avaly

Add the following JSDoc comments to the example/User.ts file:

    /** The age of the person. */
    age: types.number(),
    /** The first name of the person. */
    firstName: types.string({ required: true }),

Then hover over these fields in another file.

VSCode shows the JSDoc comments for only firstName:

2024-03-28_15-28-45-646x88
2024-03-28_15-28-55-604x78

However WebStorm shows the JSDoc comments for both fields.

I guess you can view this as a VSCode bug, but I wonder if there's something in how Papr exposes these fields so that these docs pass through.

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

    Issue actions