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

When importing components and passing them to the h() function, I want to receive type hints. #4857

Open
MyDataHouse opened this issue Sep 19, 2024 · 3 comments
Labels

Comments

@MyDataHouse
Copy link

What problem does this feature solve?

image
image
As shown in the image, SvgIcon is written in template form and does not receive type hints when using the h function.

What does the proposed solution look like?

null

@MyDataHouse MyDataHouse added the feature request Request new features label Sep 19, 2024
@KazariEX
Copy link
Collaborator

Could you provide a complete example?

@MyDataHouse
Copy link
Author

image
image

I've taken a closer look and there are indeed type hints, but I want the props that a component expects to accept, as well as related events, to be prioritized at the top when triggering suggestions in VSCode, rather than being scattered.

@KazariEX
Copy link
Collaborator

KazariEX commented Sep 20, 2024

This is not related to language tools, it's the feature of typescript itself.

It might be a core issue.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants