-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Svelte5: Improve type definitions for runes #11437
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
Pretty clever! Riffing off of this a bit, perhaps this could work too? REPL Applying it to the namespace instead should curb the tradeoff issue altogether: |
dummdidumm
added a commit
that referenced
this issue
May 3, 2024
…lisense Ensures that IDEs will order the to the bottom so that the rune variants are on top, better visible closes #11437
5 tasks
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the problem
Typescript's intellisense lists every single function prototype property on runes:

This makes it difficult to see the actual useful properties (
frozen
,snapshot
) and allows you to write things likewithout Typescript complaining.
Describe the proposed solution
The type definitions can be updated like so:
which makes intellisense look like this:

with this tradeoff:

(note that I explored a few ways of achieving this and it seems fairly delicate)
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: