Skip to content

Commit 03ab061

Browse files
committed
examples/think: regenerate worker-configuration.d.ts
1 parent 0719840 commit 03ab061

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

examples/think/worker-configuration.d.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/* eslint-disable */
2-
// Generated by Wrangler by running `wrangler types` (hash: c70665f77cf21cbe8813ef49f865eb38)
2+
// Generated by Wrangler by running `wrangler types` (hash: fe68b8cfdd57ae556525b0ee1a811942)
33
// Runtime types generated with workerd@1.20260529.1 2026-05-26 nodejs_compat
44
interface __BaseEnv_Env {
55
R2_SKILLS: R2Bucket;
66
ASSETS: R2Bucket;
7-
R2_ACCESS_KEY_ID?: string;
8-
R2_SECRET_ACCESS_KEY?: string;
9-
CLOUDFLARE_ACCOUNT_ID?: string;
107
LOADER: WorkerLoader;
118
AI: Ai;
9+
R2_ACCESS_KEY_ID: "";
10+
R2_SECRET_ACCESS_KEY: "";
11+
CLOUDFLARE_ACCOUNT_ID: "";
1212
TriageAgent: DurableObjectNamespace<import("./src/index").TriageAgent>;
1313
TRIAGE_WORKFLOW: Workflow<Parameters<import("./src/index").TriageWorkflow['run']>[0]['payload']>;
1414
}
@@ -20,6 +20,12 @@ declare namespace Cloudflare {
2020
interface Env extends __BaseEnv_Env {}
2121
}
2222
interface Env extends __BaseEnv_Env {}
23+
type StringifyValues<EnvType extends Record<string, unknown>> = {
24+
[Binding in keyof EnvType]: EnvType[Binding] extends string ? EnvType[Binding] : string;
25+
};
26+
declare namespace NodeJS {
27+
interface ProcessEnv extends StringifyValues<Pick<Cloudflare.Env, "R2_ACCESS_KEY_ID" | "R2_SECRET_ACCESS_KEY" | "CLOUDFLARE_ACCOUNT_ID">> {}
28+
}
2329

2430
// Begin runtime types
2531
/*! *****************************************************************************

examples/think/wrangler.jsonc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,11 @@
6363
}
6464
],
6565

66+
"vars": {
67+
"R2_ACCESS_KEY_ID": "",
68+
"R2_SECRET_ACCESS_KEY": "",
69+
"CLOUDFLARE_ACCOUNT_ID": ""
70+
},
71+
6672
"migrations": [{ "tag": "v1", "new_sqlite_classes": ["TriageAgent"] }]
6773
}

0 commit comments

Comments
 (0)