Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/soft-plants-win.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@cloudflare/containers': patch
---

Update container default `Env` to `Cloudflare.Env`
5 changes: 1 addition & 4 deletions examples/fuse-on-r2/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { Container, getContainer } from '../../../src/index.js';

interface Env {
FUSEDemo: DurableObjectNamespace<FUSEDemo>;
interface Env extends Cloudflare.Env {
AWS_ACCESS_KEY_ID: string;
AWS_SECRET_ACCESS_KEY: string;
R2_BUCKET_NAME: string;
R2_BUCKET_PREFIX: string;
R2_ACCOUNT_ID: string;
}

export class FUSEDemo extends Container<Env> {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class ContainerState {
// ===============================
// ===============================

export class Container<Env = unknown> extends DurableObject<Env> {
export class Container<Env = Cloudflare.Env> extends DurableObject<Env> {
// =========================
// Public Attributes
// =========================
Expand Down
Loading