From 42a8bfacaf98a3befc399a2dd6138129656b7be7 Mon Sep 17 00:00:00 2001 From: Graham Barber Date: Mon, 10 Nov 2025 14:55:42 -0800 Subject: [PATCH] fix(consumer): use correct generator signature --- packages/consumer/mod.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/consumer/mod.ts b/packages/consumer/mod.ts index 26de50c..69960f6 100644 --- a/packages/consumer/mod.ts +++ b/packages/consumer/mod.ts @@ -92,7 +92,7 @@ export class Consumer { /** * Asynchronously iterate through items in the user's PDS */ - async *listItems(): AsyncIterator< + async *listItems(): AsyncGenerator< DecryptedItem, void, undefined @@ -118,7 +118,7 @@ export class Consumer { ); } - if (res.data.cursor) cursor = res.data.cursor; + cursor = res.data.cursor; for (const record of res.data.records) { const item = parse(AppCisternLexiconItem.mainSchema, record.value); @@ -147,7 +147,7 @@ export class Consumer { * Subscribes to the Jetstreams for the user's items. Pass `"stop"` into `subscription.next(...)` to cancel * @todo Allow specifying Jetstream endpoint */ - async *subscribeToItems(): AsyncIterator< + async *subscribeToItems(): AsyncGenerator< DecryptedItem, void, "stop" | undefined -- 2.51.2