I am trying to bind to this PayPal library and I am unsure how to bind to the
options prop of the component while using named arguments and not requiring all the props to be required without using optionals.
I have no idea how to type out the binding for the options prop.
Thanks in advance!
I think you were able to do this sometime after posting, right?
Yes, this is becoming a popular theme here thanks to your help in Discord @yawaramin.
Here is the solution:
external options: (
) => options = ""
external make: (~amount: string, ~options: options=?, ~className: string=?) => React.element =