Files
chatgpt-web/src/typings/chat.d.ts
2023-02-14 15:07:50 +08:00

21 lines
310 B
TypeScript

declare namespace Chat{
interface ChatOptions {
conversationId?: string
parentMessageId?: string
}
interface Chat {
dateTime: string
message: string
reversal?: boolean
error?: boolean
options?: ChatOptions
}
interface HistoryChat {
title: string
isEdit: boolean
data: Chat[]
}
}