react-modal-image
react-modal-image copied to clipboard
Support for Typescript ?
is this package support for typescript ?
Typings are not included yet.
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;
}