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
I wanted to open a discussion on a possible way forward to add spread props
If we required users to specify the type of the spread props (assume in the same file for now), it might be possible to have the PPX transform the following,
This should preserve type safety and enable spreading
It'll also have the added benefit that you could use multiple rest/spread types (assuming no names overlap), and spread them to different child elements
It might also be possible to define the types in a different file if we leveraged some of the code from ppx-import
The text was updated successfully, but these errors were encountered:
I wanted to open a discussion on a possible way forward to add spread props
If we required users to specify the type of the spread props (assume in the same file for now), it might be possible to have the PPX transform the following,
into
This should preserve type safety and enable spreading
It'll also have the added benefit that you could use multiple rest/spread types (assuming no names overlap), and spread them to different child elements
It might also be possible to define the types in a different file if we leveraged some of the code from ppx-import
The text was updated successfully, but these errors were encountered: