I just refactored some [@bs.deriving abstract]
type definitions into another module. I referenced the type definition this way:
type name = Types.name;
Doing this threw reference errors. The reference error went away when I used open instead:
open Types;
I know using open should be avoided.
How would you reference [@bs deriving abstract]
type definitions in another module?
Also can anyone help me understand why doing something like type name = Types.name for Js.t type definitions works but doesnāt with [@bs.deriving abstract] type definitions?
Thanks!