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

Do you need immer-like library bindings in ReScript?

$
0
0

If there is a way to convert immutable record types to mutable ones, then should be straightforward to correctly type immer’s produce function

type person = {
  name: string,
  age: int
}
// converts to
type person = {
  mutable name: string,
  mutable age: int
}

Viewing all articles
Browse latest Browse all 2592

Trending Articles