Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2168

Making a module optional in a parent module signature

$
0
0

And here is a demo using a record, it’s likely the most cumbersome of all the variants.

To be honest I’d still use your solution, it’s simpler and more explicit, this way you won’t forget to define custom components when you add new “optional” ones.


Viewing all articles
Browse latest Browse all 2168