One of my favorite things about rescript is it’s ability to infer a type from usage. But that only works when the type is in the same module, I was wondering if there’s some kind of way to “open” that type into a another module but without the baggage of importing the rest of the module?
Beware that this will create a new type that’s considered another type than User.t. You can of course use coercion with that type (someTValue :> User.t) but still, not quite the same as using the original type.