-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add decoding TypeScript attribute #3054
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look at where you added that type, those are all HTML elements. What you did was make <decoding />
a valid HTML element, and it's the type of a HTMLImageElement
.
What you'll actually want to do is create a decoding
entry under the HTMLAttributes
and set it so it matches the attribute's options.
Like this:
decoding?: 'sync' | 'async' | 'auto';
This reverts commit 3cb470e.
whoops, too many types to keep track of :) should be fixed now @rschristian. thanks for taking a look at this PR! |
Thanks! |
@rschristian I know this just got merged but do you have an ETA on the next release? |
I do not, but what you can do is manually add the types until then: declaration.d.ts
Should silence any errors you'd get |
currently, when I try using:
I get this error:
this patch fixes this issue