Fetcher
Fetcher<
T
,Reserved
> =T
extendsEntrypointBranded
?Provider
<T
,Reserved
|"fetch"
|"connect"
> :unknown
&object
Defined in: node_modules/.pnpm/@cloudflare+workers-types@4.20250823.0/node_modules/@cloudflare/workers-types/index.ts:1755
Type Declaration
Section titled “Type Declaration”connect()
Section titled “connect()”connect(
address
,options?
):Socket
Parameters
Section titled “Parameters”address
Section titled “address”string
| SocketAddress
options?
Section titled “options?”Returns
Section titled “Returns”fetch()
Section titled “fetch()”fetch(
input
,init?
):Promise
<Response
>
Parameters
Section titled “Parameters”RequestInfo
<unknown
, CfProperties
<unknown
>> | URL
RequestInit
<CfProperties
<unknown
>>
Returns
Section titled “Returns”Promise
<Response
>
Type Parameters
Section titled “Type Parameters”T
extends EntrypointBranded
| undefined
= undefined
Reserved
Section titled “Reserved”Reserved
extends string
= never