diff --git a/.changeset/rude-apples-bow.md b/.changeset/rude-apples-bow.md new file mode 100644 index 00000000..a44d6e6f --- /dev/null +++ b/.changeset/rude-apples-bow.md @@ -0,0 +1,5 @@ +--- +"@cloudflare/workers-types": patch +--- + +Fix DurableObject transaction `get` to properly return `Promise` instead of `Promise` diff --git a/overrides/durableobjects.d.ts b/overrides/durableobjects.d.ts index f73bbe15..05b391af 100644 --- a/overrides/durableobjects.d.ts +++ b/overrides/durableobjects.d.ts @@ -50,7 +50,7 @@ declare abstract class DurableObjectStorage { } declare abstract class DurableObjectTransaction { - get(key: string, options?: DurableObjectGetOptions): Promise; + get(key: string, options?: DurableObjectGetOptions): Promise; get( keys: string[], options?: DurableObjectGetOptions