I want a type in ReScript, but the compiler keeps reporting an error, using Typescript I can write like this
type Node = {
parentNode: Node | null,
childrenNode: Node[],
}
in ReScript
type rec node = {
"parentNode": node | None,
"childrenNode": array<node>
}
there are error, Is there any way? Thanks.