mirror of
https://github.com/pionxzh/chatgpt-exporter.git
synced 2026-07-23 09:00:51 -05:00
fix: add explicit ApiConversations type annotation to resolve TS7022
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user