I’m creating a binding for an external JS function with type (TS):
reorder: ({ from, to }: { from: number; to: number }) => void;
Is there a way inline the creation of this object from named arguments? Perhaps something like:
external reorder: (@obj (~from: int, ~to: int)) => unit = "reorder"