method CloudflareBindingMissingError.wrongShape
CloudflareBindingMissingError.wrongShape(
binding: string,
expected: string
): CloudflareBindingMissingError

Builds the error for a binding that is present with the wrong shape.

Parameters

binding: string

The requested binding name

expected: string

The shape that was expected, for the message

Return Type

The error, ready to throw

Usage

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