sailfork / t3code-github / .repos/ alchemy-effect/ packages/ integration-tests/ test/ Cloudflare/ KV/ fixtures/ namespace.ts

import * as Cloudflare from "@alchemy.run/cloudflare";

/**
 * Shared KV namespace bound by all six binding-test workers (read /
 * write / read-write, each over the native Worker binding and over a
 * scoped HTTP API token). A value written through a Write worker is
 * observable by a Read worker, which is what the test asserts.
 */
export const TestNamespace = Cloudflare.KV.Namespace("KVBindingTestNamespace");