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

Is there a way to get the name of variant in type

$
0
0

Hi, any way to get a list of type name?

type result =
  | Ok
  | Error

should return string array:

["Ok", "Error"]


Viewing all articles
Browse latest Browse all 1787

Trending Articles