LogoRobo.js
Packages@robojs/sync

SyncCallFunction()

Type Alias: SyncCallFunction()

type SyncCallFunction = <Payload, Result>(method, payload?) => Promise<CallResult<Result>>;

The call function type returned by useSyncCall.

Type Parameters

Type ParameterDefault type
Payloadunknown
Resultunknown

Parameters

ParameterType
methodstring
payload?Payload

Returns

Promise<CallResult<Result>>

On this page