You could use a type t = private string, this way you’d make sure the parameter would be of the right type.
↧
Enforce the same generic type between two functions
↧
You could use a type t = private string, this way you’d make sure the parameter would be of the right type.