I have a type that looks like this:
module DateRange =
type T = private
{
StartDate: DateTime option
EndDate: DateTime option
}
When making Fable.Remoting calls, NewtonSoft.Json complains that there is not public constructor exposed.
Removing private is a quick fix.
However, is there any other way I could resolve this without exposing properties of the type? E.g. would switching to some other serialization method work? What would be your recommendation in this case?
I have a type that looks like this:
When making Fable.Remoting calls, NewtonSoft.Json complains that there is not public constructor exposed.
Removing
privateis a quick fix.However, is there any other way I could resolve this without exposing properties of the type? E.g. would switching to some other serialization method work? What would be your recommendation in this case?