Skip to content

Commit 7eb8a36

Browse files
committed
fix: simplify type annotations for ongoing revalidations and revalidatedPaths
1 parent 232a690 commit 7eb8a36

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/cloudflare/src/api/durable-objects/queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class DOQueueHandler extends DurableObject<CloudflareEnv> {
2323
// Ongoing revalidations are deduped by the deduplication id
2424
// Since this is running in waitUntil, we expect the durable object state to persist this during the duration of the revalidation
2525
// TODO: handle incremental cache with only eventual consistency (i.e. KV or R2/D1 with the optional cache layer on top)
26-
ongoingRevalidations: Map<string, Promise<void>> = new Map<string, Promise<void>>();
26+
ongoingRevalidations: Map<string, Promise<void>> = new Map();
2727

2828
sql: SqlStorage;
2929

packages/cloudflare/src/api/overrides/queue/memory-queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const DEFAULT_REVALIDATION_TIMEOUT_MS = 10_000;
1717
export class MemoryQueue implements Queue {
1818
readonly name = "memory-queue";
1919

20-
revalidatedPaths: Set<string> = new Set<string>();
20+
revalidatedPaths: Set<string> = new Set();
2121

2222
constructor(
2323
private opts: {

0 commit comments

Comments
 (0)