Taos API Reference
← Docs
Quick-Start Guide
Preparing search index...
core
FetchLike
Type Alias FetchLike
FetchLike
:
(
input
:
string
,
init
?:
{
headers
?:
Record
<
string
,
string
>
;
method
?:
string
;
signal
?:
AbortSignal
;
}
,
)
=>
Promise
<
{
status
:
number
;
headers
:
{
get
(
name
:
string
)
:
string
|
null
}
;
arrayBuffer
()
:
Promise
<
ArrayBuffer
>
;
}
,
>
Minimal injectable
fetch
shape, so tests can supply a mock.
Type Declaration
(
input
:
string
,
init
?:
{
headers
?:
Record
<
string
,
string
>
;
method
?:
string
;
signal
?:
AbortSignal
;
}
,
)
:
Promise
<
{
status
:
number
;
headers
:
{
get
(
name
:
string
)
:
string
|
null
}
;
arrayBuffer
()
:
Promise
<
ArrayBuffer
>
;
}
,
>
Parameters
input
:
string
Optional
init
:
{
headers
?:
Record
<
string
,
string
>
;
method
?:
string
;
signal
?:
AbortSignal
}
Returns
Promise
<
{
status
:
number
;
headers
:
{
get
(
name
:
string
)
:
string
|
null
}
;
arrayBuffer
()
:
Promise
<
ArrayBuffer
>
;
}
,
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
← Docs
Quick-Start Guide
Taos API Reference
Loading...
Minimal injectable
fetchshape, so tests can supply a mock.