I’m having a small problem renaming type_
to type
in a binding to Formik.
My binding looks like this:
module Field = {
@module("formik") @react.component
external make: (
~id: string,
~name: string,
~placeholder: string,
@as("type") ~type_: string=?,
) => React.element = "Field"
}
And I thought the optional type_
would become type
in the binding.
But the generated html still has a type_
field.
What do I need to change here?