Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Type annotation of a variadic function

$
0
0

Thanks! But that doesn’t work because you loose the variadic output:

You suggestion outputs:

tx(["strings", "string"], ["param1", "param2"]) // <- params as one array

But it needs to output:

tx(["strings, "string"], "param1", "param2") // <- params array spread out

Viewing all articles
Browse latest Browse all 2592

Trending Articles