@douglasneuroinformatics/libjs
Preparing search index...
safeFetch
Function safeFetch
safeFetch
(
url
:
string
,
init
:
RequestInit
,
)
:
ResultAsync
<
Response
,
BaseException
<
{
message
:
(
details
:
|
{
kind
:
"NETWORK_ERROR"
;
url
:
string
}
|
{
kind
:
"HTTP_ERROR"
;
status
:
number
;
statusText
:
string
;
url
:
string
;
}
,
)
=>
string
;
name
:
"FetchException"
;
}
,
NetworkErrorOptions
|
HttpErrorOptions
,
>
,
>
Parameters
url
:
string
init
:
RequestInit
Returns
ResultAsync
<
Response
,
BaseException
<
{
message
:
(
details
:
|
{
kind
:
"NETWORK_ERROR"
;
url
:
string
}
|
{
kind
:
"HTTP_ERROR"
;
status
:
number
;
statusText
:
string
;
url
:
string
;
}
,
)
=>
string
;
name
:
"FetchException"
;
}
,
NetworkErrorOptions
|
HttpErrorOptions
,
>
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@douglasneuroinformatics/libjs
Loading...