-
No problem with taking parameters from JS and matching to any type contains optional with one depth
-
But it seems to lose values wrapped by
optionif you have more depth like below
type file = {
name: option(string),
content: option(string),
};
[@bs.deriving {jsConverter: newType}]
type configMap = {
name: option(string),
namespace: option(string),
file: file
};
