preact icon indicating copy to clipboard operation
preact copied to clipboard

audio tag not support volume attribute in typescripts

Open CarmeloXue opened this issue 7 years ago • 1 comments

I use 10.0.0-rc.1, and I want to use <audio {...someProps} volume={0.1}>. But in ts, I got an error : Property 'volume' does not exist on type 'HTMLAttributes'. Then I found in index.d.ts file where HTMLAttributes just don't include this attribute. Is there any chance to add this?

CarmeloXue avatar Sep 18 '19 07:09 CarmeloXue

I'll tackle this beginner-friendly one.

jessicabyrne avatar Sep 18 '19 17:09 jessicabyrne