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

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

Open
teddybee opened this issue Jun 3, 2023 · 2 comments
Open

Comments

@teddybee
Copy link

teddybee commented Jun 3, 2023

No description provided.

@teddybee teddybee changed the title onClose property is not exist in Lightbox component with TS onClose property is not exist/exposed in Lightbox component with TS Jun 3, 2023
@teddybee
Copy link
Author

teddybee commented Jun 3, 2023

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

@golifeline
Copy link

any commit update for the solution?

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

2 participants