Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Typescript ? #14

Open
hern12 opened this issue Jun 12, 2019 · 2 comments
Open

Support for Typescript ? #14

hern12 opened this issue Jun 12, 2019 · 2 comments

Comments

@hern12
Copy link

hern12 commented Jun 12, 2019

is this package support for typescript ?

@aautio
Copy link
Owner

aautio commented Jun 26, 2019

Typings are not included yet.

@stephennancekivell
Copy link

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants