Node_module.Node
Node Module API
Placeholder for Node bindings
type node_module =
Js.t({. id: string
, exports: node_exports
, parrent: Js.null_undefined(node_module)
, filename: string
, loaded: bool
, children: array(node_module)
, paths: array(string)});
type node_require =
Js.t({. main: Js.undefined(node_module)
, resolve: Js.Fn.arity1((string => string))});
type string_buffer_kind(_) =
| String : string_buffer_kind(string)
| Buffer : string_buffer_kind(buffer)
;
let test: string_buffer => (string_buffer_kind('t), 't0);
We expect a good inliner will eliminate such boxing in the future