method ICloudflareBindings.has
ICloudflareBindings.has(name: string): boolean

Reports whether a binding of that name is present.

Parameters

name: string

The binding name from wrangler.toml

Return Type

boolean

true when the Worker carries it

Usage

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