I was wondering if it is possible to add an initial value to the property of a type record.
type ToDo = {
Title : string
Description : string
Done : bool
}
Something like this:
Done : bool option = false
That is, I want to do something like in C # :
public class Todo
{
public string Title { get; set; }
public string Description { get; set; }
public bool Done { get; set; } = false; // Just like this
}