You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Step 1: pnpm install
Step 2: pnpm build
Step 3: Move the .d.ts file in fast-element-plus/types/packages to the fast-element-plus/es folder.
Step 4: Copy packages/components/dialog/index.d.ts to the fast-element-plus/es/components/dialog folder.
If you get the code directly, you can ignore the above four steps.
Steps to reproduce:
You can install the fast-element-plus package through npm or install it through local files. (There is a complete example in the app folder)
In vs code, hovering the mouse over the disabledConfirmButton property does not display comments.
When I use Crtl + left click to view the definition, it is automatically defined to a place without comments. The strange thing is that this property is commented in all other places in the entire .d.ts file, but there is no comment here by default.
What is expected?
I hope vs code can prompt the comments of props attributes.
What is actually happening?
I don't understand whether it is a problem with vs code or a problem with my library building that causes the jsdoc comments of my props to not display properly, but through the .d.ts file, I can see that there are indeed jsdoc comments in many places.
This is extremely inefficient for me to customize the component library for developers to use without documentation.
Vue version
3.5.12
Link to minimal reproduction
https://stackblitz.com/edit/props-jsdoc-error-20241013
Steps to reproduce
Step 1:
pnpm install
Step 2:
pnpm build
Step 3: Move the
.d.ts
file infast-element-plus/types/packages
to thefast-element-plus/es
folder.Step 4: Copy
packages/components/dialog/index.d.ts
to thefast-element-plus/es/components/dialog
folder.If you get the code directly, you can ignore the above four steps.
Steps to reproduce:
You can install the
fast-element-plus
package throughnpm
or install it through local files. (There is a complete example in theapp
folder)In vs code, hovering the mouse over the
disabledConfirmButton
property does not display comments.When I use Crtl + left click to view the definition, it is automatically defined to a place without comments. The strange thing is that this property is commented in all other places in the entire .d.ts file, but there is no comment here by default.
What is expected?
I hope vs code can prompt the comments of props attributes.
What is actually happening?
I don't understand whether it is a problem with vs code or a problem with my library building that causes the jsdoc comments of my props to not display properly, but through the .d.ts file, I can see that there are indeed jsdoc comments in many places.
This is extremely inefficient for me to customize the component library for developers to use without documentation.
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: