Cmd

Namespace: Bolero.Remoting.Client

Elmish commands for remote calls and JavaScript interop.

Nested types and modules

ModuleDescription
OfAuthorized
OfJS

Functions and values

Function or valueDescription
either(...)
Signature: js:IJSRuntime -> jsFunctionName:string -> args:obj [] -> ofSuccess:('?8170 -> '?8171) -> ofError:(exn -> '?8171) -> Cmd<'?8171>
Type parameters: '?8170, '?8171 Attributes:
[<Obsolete("Use Cmd.OfJS.either")>]
WARNING: This API is obsolete

Use Cmd.OfJS.either

Command that will perform a JavaScript interop call and map the result to a message or error (of exception)

ofAuthorized f arg ofSuccess ofError
Signature: f:('?8162 -> Async<'?8163>) -> arg:'?8162 -> ofSuccess:('?8163 option -> '?8164) -> ofError:(exn -> '?8164) -> Cmd<'?8164>
Type parameters: '?8162, '?8163, '?8164 Attributes:
[<Obsolete("Use Cmd.OfAuthorized.either")>]
WARNING: This API is obsolete

Use Cmd.OfAuthorized.either

Command that will call a remote Bolero function with authorization and map the result into successful Some if authorized, successful None if not, or error (of exception)

ofRemote f arg ofSuccess ofError
Signature: f:('req -> Async<'resp>) -> arg:'req -> ofSuccess:(RemoteResponse<'resp> -> 'msg) -> ofError:(exn -> 'msg) -> Cmd<'msg>
Type parameters: 'req, 'resp, 'msg Attributes:
[<Obsolete("Use Cmd.OfAsync.either or Cmd.OfAuthorized.either")>]
WARNING: This API is obsolete

Use Cmd.OfAsync.either or Cmd.OfAuthorized.either

Command that will call a remote Bolero function with authorization and map the result into response or error (of exception)

performAuthorized f arg ofSuccess
Signature: f:('?8166 -> Async<'?8167>) -> arg:'?8166 -> ofSuccess:('?8167 option -> '?8168) -> Cmd<'?8168>
Type parameters: '?8166, '?8167, '?8168 Attributes:
[<Obsolete("Use Cmd.OfAuthorized.perform")>]
WARNING: This API is obsolete

Use Cmd.OfAuthorized.perform

Command that will call a remote Bolero function with authorization and map the result into Some if authorized, None if not, discarding any possible error

performJS(...)
Signature: js:IJSRuntime -> jsFunctionName:string -> args:obj [] -> ofSuccess:('?8173 -> '?8174) -> Cmd<'?8174>
Type parameters: '?8173, '?8174 Attributes:
[<Obsolete("Use Cmd.OfJS.perform")>]
WARNING: This API is obsolete

Use Cmd.OfJS.perform

Command that will perform a JavaScript interop call and map the result to a message discarding any possible error

performRemote f arg ofSuccess
Signature: f:('req -> Async<'resp>) -> arg:'req -> ofSuccess:(RemoteResponse<'resp> -> 'msg) -> Cmd<'msg>
Type parameters: 'req, 'resp, 'msg Attributes:
[<Obsolete("Use Cmd.OfAsync.perform or Cmd.OfAuthorized.perform")>]
WARNING: This API is obsolete

Use Cmd.OfAsync.perform or Cmd.OfAuthorized.perform

Command that will call a remote Bolero function with authorization and map the success to a message discarding any possible error