module TextInput = {
type envType;
type onChangeType = (envType, string) => unit;
[@bs.module “text-input”] [@react.component]
external make:
(
~onChange: onChangeType,
~value: string,
~unit_: string=?,
~type_: string=?,
) =>
React.element =
“default”;
};
how to rename labelled arguments type_ -> type, unit_ -> unit.
Thanks for you help guys.
Regards
Srikanth