Skip to main content

WorkerEnvFetchBinding

Overview

An environment binding within a worker that has a fetch method. This usually is related to static assets uploaded to Cloudflare KV via Wrangler's Worker Sites.

Usage

import { WorkerEnvFetchBinding } from 'keywork/router/interfaces'

Properties

fetch

fetch: (`input`: `URL` | `RequestInfo`, `init?`: `RequestInit`) => `Promise<Response>`

Type declaration

(input, init?): `Promise<Response>`
Parameters
NameType
inputURL
init?RequestInit
Returns

Promise<Response>

Defined in

router/interfaces/WorkerEnvFetchBinding.ts:20