Skip to content

Transferring private types #348

@DejanMilicic

Description

@DejanMilicic

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions