Skip to content

Commit dbfbe40

Browse files
committed
fix(cloudflare): make props optional in KV Namespace and R2 Bucket
1 parent 5e76f21 commit dbfbe40

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

alchemy-effect/src/cloudflare/kv/namespace.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ export interface Namespace<
2424
export const Namespace = Resource<{
2525
<const ID extends string, const Props extends NamespaceProps>(
2626
id: ID,
27-
props: Props,
27+
props?: Props,
2828
): Namespace<ID, Props>;
2929
}>("Cloudflare.KV.Namespace");

alchemy-effect/src/cloudflare/r2/bucket.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface Bucket<
2727
export const Bucket = Resource<{
2828
<const ID extends string, const Props extends BucketProps>(
2929
id: ID,
30-
props: Props,
30+
props?: Props,
3131
): Bucket<ID, Props>;
3232
}>("Cloudflare.R2.Bucket");
3333

0 commit comments

Comments
 (0)