@jspm/generator
JSPM CLI Documentation
@jspm/generator
@jspm/import-map
Online Generator
Preparing search index...
setFetch
Function setFetch
setFetch
(
fetch
:
|
{
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
Request
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
|
WrappedFetch
,
)
:
void
Allows customizing the fetch implementation used by the generator.
Parameters
fetch
:
|
{
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
Request
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
|
WrappedFetch
{
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
(
input
:
string
|
Request
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
;
}
(
input
:
RequestInfo
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
RequestInfo
|
URL
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
(
input
:
string
|
Request
|
URL
,
init
?:
RequestInit
)
:
Promise
<
Response
>
MDN Reference
Parameters
input
:
string
|
Request
|
URL
Optional
init
:
RequestInit
Returns
Promise
<
Response
>
WrappedFetch
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
JSPM Homepage
JSPM CLI Documentation
@jspm/generator
@jspm/import-map
Online Generator
@jspm/generator
Loading...
Allows customizing the fetch implementation used by the generator.