@@ -29,15 +29,15 @@ type DiffableOpts = {
2929
3030/**
3131 * Dynamically create a state object that persists changes to durable storage using Proxy and SQLite.
32- *
32+ *
3333 * ```
3434 * import { DurableObject } from "cloudflare:workers";
3535 * import { diffable } from "diffable-objects";
36- *
36+ *
3737 * class Counter extends DurableObject {
3838 * @diffable
3939 * #state = { count: 0 };
40- *
40+ *
4141 * async fetch(request) {
4242 * this.#state.count += 1;
4343 * return new Response(`Count: ${this.#state.count}`);
@@ -51,15 +51,15 @@ export function diffable(
5151) : FieldDecoratorReturn < any > ;
5252/**
5353 * Dynamically create a state object that persists changes to durable storage using Proxy and SQLite.
54- *
54+ *
5555 * ```
5656 * import { DurableObject } from "cloudflare:workers";
5757 * import { diffable } from "diffable-objects";
58- *
58+ *
5959 * class Counter extends DurableObject {
6060 * @diffable ("counter")
6161 * #state = { count: 0 };
62- *
62+ *
6363 * async fetch(request) {
6464 * this.#state.count += 1;
6565 * return new Response(`Count: ${this.#state.count}`);
@@ -70,15 +70,15 @@ export function diffable(
7070export function diffable ( name ?: string ) : FieldDecoratorFactoryReturn < any > ;
7171/**
7272 * Dynamically create a state object that persists changes to durable storage using Proxy and SQLite.
73- *
73+ *
7474 * ```
7575 * import { DurableObject } from "cloudflare:workers";
7676 * import { diffable } from "diffable-objects";
77- *
77+ *
7878 * class Counter extends DurableObject {
7979 * @diffable ({ name: "counter", snapshotPolicy: "never" })
8080 * #state = { count: 0 };
81- *
81+ *
8282 * async fetch(request) {
8383 * this.#state.count += 1;
8484 * return new Response(`Count: ${this.#state.count}`);
0 commit comments