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

Showing proper suggestion for function props. #2606

Open
HighFunctioningSociopathSH opened this issue Nov 25, 2024 · 0 comments
Open

Showing proper suggestion for function props. #2606

HighFunctioningSociopathSH opened this issue Nov 25, 2024 · 0 comments

Comments

@HighFunctioningSociopathSH

Describe the problem

When passing a function prop to a component that uses typescript, typescript will show an extra suggestion as an autocomplete for the method as it would do for normal TS objects but this doesn't make sense for Svelte components.
image
Note that this extra suggestion only shows up if you start typing without first manually popping the suggestions up (pressing CTRL + Space).

Describe the proposed solution

I was wondering if there is anyway to change this to either show a proper autocomplete suggestion for Svelte components like:
image
Or to not show that default typescript extra suggestion at all.

I wouldn't mind writing an extra property like I did in the top image, but what annoys me is that extra typescript suggestion which makes the suggestions look like this:
image

I'm not aware if this default behavior of typescript can be disabled or not, but since its used pretty often during development it can be a bit annoying.

Importance

nice to have

@dummdidumm dummdidumm transferred this issue from sveltejs/svelte Nov 25, 2024
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