We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac051db commit 3a4cf2bCopy full SHA for 3a4cf2b
src/content/docs/durable-objects/api/storage-api.mdx
@@ -31,7 +31,7 @@ export class Counter extends DurableObject {
31
super(ctx, env);
32
}
33
34
- async increment(): Promise < number > {
+ async increment(): Promise<number> {
35
let value: number = (await this.ctx.storage.get('value')) || 0;
36
value += 1;
37
await this.ctx.storage.put('value', value);
0 commit comments