reason
                                
                                
                                
                                    reason copied to clipboard
                            
                            
                            
                        Confusing documentation for JavaScript Interop
In page Interop · Reason, under section Settling down and getting disciplined about things, the code shows:
[@bs.send] external getContext : (canvas, string) => context = "getContext";
But the documentation below says:
Then we made a
getContextfunction, but instead of@bs.valwe used@bs.send, and we used an empty string for the text of the external. [emphasis mine]