Skip to content

Type hint for all generic props for idom.html #868

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

Closed
Archmonger opened this issue Jan 4, 2023 · 2 comments
Closed

Type hint for all generic props for idom.html #868

Archmonger opened this issue Jan 4, 2023 · 2 comments
Labels
priority-3-low May be resolved one any timeline.

Comments

@Archmonger
Copy link
Contributor

Archmonger commented Jan 4, 2023

Current Situation

There currently are no type hints for idom.html props.

Proposed Actions

We should probably long-form type-hint them for developer's convenience. We can find all available props in the react docs.

I've written a basic parser that digests the ReactJS docs and outputs names/type pairs.

https://gist.github.com/Archmonger/8d01d2efba1071f4950549004719eb19

In order to be used effectively, this will require this issue to be resolved within VSCode:

@Archmonger Archmonger added type: feature priority-3-low May be resolved one any timeline. labels Jan 4, 2023
@Archmonger Archmonger added this to the 2.0 milestone Jan 4, 2023
@rmorshea rmorshea removed this from the Luxury milestone Feb 21, 2023
@Archmonger
Copy link
Contributor Author

VS Code now supports auto-completion for TypeDicts.

@Archmonger
Copy link
Contributor Author

Resolved in #1281

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low May be resolved one any timeline.
Projects
None yet
Development

No branches or pull requests

2 participants