trembita
Preparing search index...
validateInitOptions
Function validateInitOptions
validateInitOptions
(
options
:
unknown
,
)
:
Result
<
Readonly
<
{
circuitBreaker
?:
Readonly
<
{
cooldownMs
:
number
;
failureThreshold
:
number
}
,
>
;
endpoint
:
string
;
fetchImpl
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
;
log
?:
Readonly
<
Partial
<
{
debug
:
(
...
args
:
readonly
unknown
[]
)
=>
void
;
error
:
(
...
args
:
readonly
unknown
[]
)
=>
void
;
info
:
(
...
args
:
readonly
unknown
[]
)
=>
void
;
trace
:
(
...
args
:
readonly
unknown
[]
)
=>
void
;
warn
:
(
...
args
:
readonly
unknown
[]
)
=>
void
;
}
,
>
,
>
;
timeoutMs
?:
number
;
}
,
>
,
TrembitaInitError
,
>
Parameters
options
:
unknown
Returns
Result
<
Readonly
<
{
circuitBreaker
?:
Readonly
<
{
cooldownMs
:
number
;
failureThreshold
:
number
}
,
>
;
endpoint
:
string
;
fetchImpl
?:
{
(
input
:
URL
|
RequestInfo
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
URL
|
Request
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
;
log
?:
Readonly
<
Partial
<
{
debug
:
(
...
args
:
readonly
unknown
[]
)
=>
void
;
error
:
(
...
args
:
readonly
unknown
[]
)
=>
void
;
info
:
(
...
args
:
readonly
unknown
[]
)
=>
void
;
trace
:
(
...
args
:
readonly
unknown
[]
)
=>
void
;
warn
:
(
...
args
:
readonly
unknown
[]
)
=>
void
;
}
,
>
,
>
;
timeoutMs
?:
number
;
}
,
>
,
TrembitaInitError
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
trembita
Loading...