Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

protocolTypes.ts

14 lines406 Bytes

1import type * as Cloudflare from "@cloudflare/workers-types";
2​
3export interface ProtocolBindings {
4 readonly INDEX: Cloudflare.D1Database;
5 readonly ARTIFACTS: Omit<Cloudflare.R2Bucket, "get"> & {
6 get(key: string): Promise<
7 | (Omit<Cloudflare.R2ObjectBody, "body"> & {
8 readonly body: ReadableStream<Uint8Array>;
9 })
10 | null
11 >;
12 };
13 readonly GC_BATCH_SIZE: string;