TypeScript: Property 'autoplay' does not exist on type for <audio>
If I specify the 'autoplay' attribute for an
Property 'autoplay' does not exist on type 'DetailedHTMLProps<AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>'.
When I change the attribute to autoPlay the autoplay no longer works.
Yea what's the deal with this?
Why is this a snabbdom issue, please?
Because snabbdom is a TypeScript library and autoplay is an attribute on the audio element.
https://www.w3.org/TR/html50/embedded-content-0.html#the-audio-element
Snabbdom probably sources these properties from TypeScript's DOM types library itself. Doesn't it?
Here is the autoplay property:
https://github.com/microsoft/TypeScript/blob/219a570a75f1c3df67ae0282e41848b87781fc51/src/lib/dom.generated.d.ts#L7615
I couldn't find where DetailedHTMLProps or AudioHTMLAttributes come from. Help?
just came across this while searching for another answer. use autoPLay.