Skip to content

Idea: discover typed api client registrations and provide them as holes in the CEs #35

@jkone27

Description

@jkone27

it could be interesting to provide typed api registration when typed api clients are provided server side, e.g.

let webAppFactory = 
    new TestClient<Web.Sample.Program>() 
    |> fun x -> x {
        API<Web.Sample.Clients.ClientOne> {
             // typechecks on return type from api client methods
             _.GetName {| Name = "Peter" |} 
             _.GetAge {| Age = 100 |}
         }
    }
    |> _.GetFactory()

or some alternative form

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions