So, it is no secret that this package lacks TypeScript support. Yeah @types/react-howler exists but most of the time it's out of sync.
Also with this switch we can directly cast react-howler's props to howler and use the types from @types/howler for props (also proper auto-complete support is huge bonus). So every time howler gets updated all we need to do is update howler and @types/howler.
So, it is no secret that this package lacks TypeScript support. Yeah @types/react-howler exists but most of the time it's out of sync.
Also with this switch we can directly cast react-howler's props to howler and use the types from @types/howler for props (also proper auto-complete support is huge bonus). So every time howler gets updated all we need to do is update howler and @types/howler.