- MCP
- code on this site's /mcp
- CLI
- none: the JSON below is the answer
- JSON
- /christopher/abso-core/files/client/src/durable-object-stand-in.ts?format=json
13 linespinch 100%
1// What `import { DurableObject } from "cloudflare:workers"` gives the open server's code when it runs inside the client
2// for a local project (local-store.ts): a base class that keeps the object's state and settings, which is all the
3// project object takes from it. The build points that import here (scripts/build-client.mjs); run as .ts files, a
4// module hook does (local-store.ts).
6export class DurableObject<Env = unknown> {
7 ctx: unknown;
8 env: Env;
9 constructor(ctx: unknown, env: Env) {
10 this.ctx = ctx;
11 this.env = env;
12 }
13}