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

Enforce the same generic type between two functions

$
0
0

You could use a type t = private string, this way you’d make sure the parameter would be of the right type.


Viewing all articles
Browse latest Browse all 2592

Trending Articles