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:('?8168 -> '?8169) -> ofError:(exn -> '?8169) -> Cmd<'?8169>
Type parameters: '?8168, '?8169 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:('?8160 -> Async<'?8161>) -> arg:'?8160 -> ofSuccess:('?8161 option -> '?8162) -> ofError:(exn -> '?8162) -> Cmd<'?8162>
Type parameters: '?8160, '?8161, '?8162 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:('?8164 -> Async<'?8165>) -> arg:'?8164 -> ofSuccess:('?8165 option -> '?8166) -> Cmd<'?8166>
Type parameters: '?8164, '?8165, '?8166 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:('?8171 -> '?8172) -> Cmd<'?8172>
Type parameters: '?8171, '?8172 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