Skip to content

Request: add a type argument to ImageGallery so that we can use whatever props we want for ImageObject #19

Description

@nathantew14

When rendering custom components with renderCustomImage and the other similar render props, I often want to pass in additional data for the custom component to work, beyond just showing the image. For example, showing a button conditionally. It still works as long as the objects passed to the images props have the properties I want, but typescript complains:

Property 'createdBy' does not exist on type 'ImageObject'.

I tried to do it myself to make a PR, but unfortunately I'm still too newb at typescript...

If this isn't added by the time I figure it out, I'll make a PR for it :P

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions