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