It works but TypeScript complains that duration doesn't exist on e.currentTarget.
Currently all of the events are being typed as Event. The DefinitelyTyped entry types the events as React.SyntheticEvent<HTMLAudioElement, Event>. This is probably more accurate right?
I've got a React Audio Player doing this:
It works but TypeScript complains that
duration
doesn't exist one.currentTarget
.Currently all of the events are being typed as
Event
. The DefinitelyTyped entry types the events asReact.SyntheticEvent<HTMLAudioElement, Event>
. This is probably more accurate right?