react-images icon indicating copy to clipboard operation
react-images copied to clipboard

Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'.

Open uffou opened this issue 2 years ago • 1 comments

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch [email protected] for the project I'm working on.

Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes'.

Here is the diff that solved my problem:

diff --git a/node_modules/react-images/index.d.ts b/node_modules/react-images/index.d.ts
index 3f98829..34b376f 100755
--- a/node_modules/react-images/index.d.ts
+++ b/node_modules/react-images/index.d.ts
@@ -138,7 +138,7 @@ declare const Carousel: React.ComponentType<CarouselProps>
 
 declare const Modal: React.ComponentType<ModalProps>
 
-declare const ModalGateway: React.ComponentType<{}>
+declare const ModalGateway: React.ComponentType<{children:any}>
 
 export default Carousel
 export { Modal, ModalGateway }

This issue body was partially generated by patch-package.

uffou avatar Mar 12 '23 06:03 uffou

same problem :(

asaduryan avatar May 26 '23 17:05 asaduryan