Preparing search index...
The search index is not available
@cloudflare/workers-types
@cloudflare/workers-types
Fetcher
Type alias Fetcher<T, Reserved>
Fetcher
<
T
,
Reserved
>
:
(
T
extends
EntrypointBranded
?
Provider
<
T
,
Reserved
|
"fetch"
|
"connect"
>
:
unknown
)
&
{
connect
(
address
,
options
?
)
:
Socket
;
fetch
(
input
,
init
?
)
:
Promise
<
Response
>
;
}
Type Parameters
T
extends
EntrypointBranded
|
undefined
=
undefined
Reserved
extends
string
=
never
Type declaration
connect
:
function
connect
(
address
,
options
?
)
:
Socket
Parameters
address
:
string
|
SocketAddress
Optional
options
:
SocketOptions
Returns
Socket
fetch
:
function
fetch
(
input
,
init
?
)
:
Promise
<
Response
>
Parameters
input
:
RequestInfo
<
unknown
,
CfProperties
<
unknown
>
>
Optional
init
:
RequestInit
<
CfProperties
<
unknown
>
>
Returns
Promise
<
Response
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
@cloudflare/workers-types
Loading...