Add decoding TypeScript attribute#3054
Conversation
rschristian
left a comment
There was a problem hiding this comment.
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