Documents / @faasjs/react / FaasReactClientInstance
Type Alias: FaasReactClientInstance
FaasReactClientInstance:
object
Type declaration
browserClient
browserClient:
FaasBrowserClient
faas()
faas: <
PathOrData
>(action
,params
,options
?) =>Promise
<Response
<FaasData
<PathOrData
>>>
Type Parameters
• PathOrData extends FaasAction
Parameters
• action: PathOrData
| string
• params: FaasParams
<PathOrData
>
• options?: Options
Returns
Promise
<Response
<FaasData
<PathOrData
>>>
id
id:
string
onError
onError:
OnError
useFaas()
useFaas: <
PathOrData
>(action
,defaultParams
,options
?) =>FaasDataInjection
<PathOrData
>
Type Parameters
• PathOrData extends FaasAction
Parameters
• action: PathOrData
| string
• defaultParams: FaasParams
<PathOrData
>
• options?: useFaasOptions
<PathOrData
>
Returns
FaasDataInjection
<PathOrData
>
FaasDataWrapper()
Type Parameters
• PathOrData extends FaasAction
Parameters
• props: FaasDataWrapperProps
<PathOrData
>
Returns
Element