fix: add explicit ApiConversations type annotation to resolve TS7022

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
pionxzh
2026-03-01 21:44:34 +08:00
parent 0e1770356e
commit b31d5cd565

View File

@@ -555,7 +555,7 @@ export async function fetchAllConversations(project: string | null = null, maxCo
let cursor: string | number = 0 // project conversations use alphanumeric cursors
while (true) {
try {
const result = project === null
const result: ApiConversations = project === null
? await fetchConversations(offset, limit)
: await fetchProjectConversations(project, cursor, limit)
if (!result.items) {