fix(twitter-client): relax cursor typing

This commit is contained in:
Peter Steinberger
2026-01-01 13:32:30 +01:00
parent d8c2181dfb
commit 8aae28315e
+2 -5
View File
@@ -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;
}