react-modal-video icon indicating copy to clipboard operation
react-modal-video copied to clipboard

Typescript compatible issue

Open webdev778 opened this issue 4 years ago • 4 comments

This package isn't working with using typescript.

image

Could you support this issue?

Thanks in advance

webdev778 avatar Nov 28 '20 05:11 webdev778

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

Running into the same issue.

cdt-eth avatar Jun 29 '21 17:06 cdt-eth

same here

AleksMeshkov avatar Sep 17 '21 18:09 AleksMeshkov

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

cdt-eth avatar Sep 17 '21 19:09 cdt-eth

If someone still need this:

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

FedericoCasarella avatar Feb 29 '24 11:02 FedericoCasarella