Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit b87a6f9

Browse files
committed
Fix type bug in DurableObject txn get
Transactions are no different from regular operations. get returns T | undefined
1 parent f661c28 commit b87a6f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: overrides/durableobjects.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ declare abstract class DurableObjectStorage {
5050
}
5151

5252
declare abstract class DurableObjectTransaction {
53-
get<T = unknown>(key: string, options?: DurableObjectGetOptions): Promise<T>;
53+
get<T = unknown>(key: string, options?: DurableObjectGetOptions): Promise<T | undefined>;
5454
get<T = unknown>(
5555
keys: string[],
5656
options?: DurableObjectGetOptions

0 commit comments

Comments
 (0)