typescript durable objects transaction api
Is there an example of how to type durable objects in the storage api?
I guess I'd want to define the type of stuff accessed through this.storage.get()/set()
1 Reply
The methods are generic so you'd just do
this.storage.get<T>(key, opts)
, etc