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

onClose property is not exist/exposed in Lightbox component with TS

Open teddybee opened this issue 2 years ago • 2 comments

teddybee avatar Jun 03 '23 12:06 teddybee

The solution could be toadd

export type LightboxProps = {
  onClose?: () => void;
} & ModalImageProps;

declare class Lightbox extends React.Component<LightboxProps > {}

to this file https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react-modal-image/index.d.ts

teddybee avatar Jun 03 '23 13:06 teddybee

any commit update for the solution?

golifeline avatar Jul 26 '23 02:07 golifeline