method ICloudflareBindings.kv
ICloudflareBindings.kv(name: string): IKvNamespace

A KV namespace binding.

Parameters

name: string

The binding name

Return Type

The KV namespace

Throws

CloudflareBindingMissingError

When absent, or not KV-shaped

Usage

import { type ICloudflareBindings } from "cloudflare-plugin/src/index.ts";