appleple / react-modal-video

Accessible React Modal Video Component
https://appleple.github.io/react-modal-video/
MIT License
177 stars 86 forks source link

Typescript compatible issue #43

Open webdev778 opened 3 years ago

webdev778 commented 3 years ago

This package isn't working with using typescript.

image

Could you support this issue?

Thanks in advance

cdt-eth commented 3 years ago

Wondering if there's any plan or update on this.

Running into the same issue.

AleksMeshkov commented 2 years ago

same here

cdt-eth commented 2 years ago

hey @AleksMeshkov, I was able to silence the warning by adding this folder under types

so i created a types folder in root, then a sub-folder called react-modal-video and then created an index.d.ts file with `declare module 'react-modal-video' in it. that's it.

you can see here: https://github.com/christiandavidturner/Disney-Plus-Plus/tree/main/types/react-modal-video

FedericoCasarella commented 6 months ago

If someone still need this:

npm i --save-dev @types/react-modal-video