You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
When rendering custom components with
renderCustomImage
and the other similarrender
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 theimages
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
The text was updated successfully, but these errors were encountered: