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 Parameter | Default type |
|---|---|
Payload | unknown |
Result | unknown |
Parameters
| Parameter | Type |
|---|---|
method | string |
payload? | Payload |
Returns
Promise<CallResult<Result>>
