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

JSDoc not viewable on optional fields #775

Open
avaly opened this issue Mar 28, 2024 · 0 comments
Open

JSDoc not viewable on optional fields #775

avaly opened this issue Mar 28, 2024 · 0 comments

Comments

@avaly
Copy link
Collaborator

avaly commented Mar 28, 2024

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.

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