Skip to content

Schema

Schema = Record<string, BindingDef>

Defined in: packages/env/src/types.ts:152

A record mapping binding names to their BindingDef definitions.

Passed to defineEnv to declare the expected Cloudflare Worker bindings.

const schema: Schema = {
DB: { type: "d1" },
API_KEY: { type: "secret" },
LOG_LEVEL: { type: "var", default: "info" },
};