UsePhoneCallsOptions
UsePhoneCallsOptions =
object
Defined in: src/react/usePhoneCalls.ts:25
Properties
autoFetchAvailability?
optionalautoFetchAvailability:boolean
Defined in: src/react/usePhoneCalls.ts:37
Whether to fetch feature availability automatically on mount (default: true)
baseUrl?
optionalbaseUrl:string
Defined in: src/react/usePhoneCalls.ts:33
Optional base URL for the API requests.
getToken()?
optionalgetToken: () =>Promise<string|null>
Defined in: src/react/usePhoneCalls.ts:29
Custom function to get auth token for API calls
Returns
Promise<string | null>
onError()?
optionalonError: (error:Error) =>void
Defined in: src/react/usePhoneCalls.ts:41
Optional callback for error handling
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
void
Last updated on