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

Support for Typescript ?

Open hern12 opened this issue 6 years ago • 2 comments

is this package support for typescript ?

hern12 avatar Jun 12 '19 09:06 hern12

Typings are not included yet.

aautio avatar Jun 26 '19 13:06 aautio

FWIW, users of the library can declare a module a bit like this.

in react-modal-image.d.ts

declare module "react-modal-image" {
  export default function ModalImage(props: {
    small: string;
    large: string;
    alt: string;
    style: any;
  }): JSX.Element;
}

stephennancekivell avatar Sep 22 '22 05:09 stephennancekivell