From 8aae28315e8ab028edee868af20f81d3a3d96086 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 1 Jan 2026 13:32:30 +0100 Subject: [PATCH] fix(twitter-client): relax cursor typing --- src/lib/twitter-client.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/twitter-client.ts b/src/lib/twitter-client.ts index 6419c8c..8134ec1 100644 --- a/src/lib/twitter-client.ts +++ b/src/lib/twitter-client.ts @@ -928,10 +928,7 @@ export class TwitterClient { instructions: | Array<{ entries?: Array<{ - content?: { - cursorType?: string; - value?: string; - }; + content?: unknown; }>; }> | undefined, @@ -939,7 +936,7 @@ export class TwitterClient { ): string | undefined { for (const instruction of instructions ?? []) { for (const entry of instruction.entries ?? []) { - const content = entry.content; + const content = entry.content as { cursorType?: unknown; value?: unknown } | undefined; if (content?.cursorType === cursorType && typeof content.value === 'string' && content.value.length > 0) { return content.value; }