-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Misleading doc string generation in typescript components #2255
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
Comments
Thanks for the report @snehilvj .
|
Hi @T4rk1n Thanks for the fix on 2nd point above. Any thing going with the 1st point above? Btw loving the typescript experience so far. Migrated entire dmc to typescript in the latest 0.11.0a0 release. |
Hi @T4rk1n
The same thing happens with any prop that has __, e.g. __@iterator@1234. We're converting an internal typescript component library to Dash, and it's pretty frustrating, because we can't generate components on our unix system without doing a billion workarounds to exclude problematic props. Would really appreciate any help. |
@tsveti22 Lines 29 to 30 in 993b57f
Then use the python generator: dash/dash/development/component_generator.py Lines 39 to 52 in 993b57f
With the metadata given the The Part 1 of this issue is still unfixed, that is when you have an enum type with mixed types it only generates one type. |
@T4rk1n will your work on the code generator fix this as a side effect? |
No the enum types is another bug. |
Hi, I am migrating dash-mantine-components to typescript. However, I have been facing some issues with the doc strings generation. The doc strings are not very accurate, in fact, for some prop types, doc string generation just fails.
Example 1
Have a look at how the doc string is generated for the radius prop.
The radius property will accept both strings and numbers but the doc string is misleading.
Example 2
For somewhat complex prop types such as value here, the prop generation just fails with the below error.
Error:
Thanks
Snehil
The text was updated successfully, but these errors were encountered: