FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

Documents / @faasjs/react / FaasBrowserClientAction

Type Alias: FaasBrowserClientAction

FaasBrowserClientAction = <Path>(action, params?, options?) => Promise<Response<FaasData<Path>> | Response>

Type signature for the FaasBrowserClient.action method.

Type Parameters

Path

Path extends FaasActionPaths

Registered action path used to infer request params and response data.

Parameters

action

Path

Action path to invoke.

params?

FaasParams<Path>

Params sent to the action.

options?

Options

Per-request overrides on top of client defaults.

Returns

Promise<Response<FaasData<Path>> | Response>

FaasJS response or native fetch response when streaming.