mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 00:53:14 +00:00
adds conversation slice and acomoddates conversation component with the
data types
This commit is contained in:
10
frontend/src/conversation/conversationModels.ts
Normal file
10
frontend/src/conversation/conversationModels.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export type MESSAGE_TYPE = 'QUESTION' | 'ANSWER';
|
||||
|
||||
export interface Message {
|
||||
text: string;
|
||||
type: MESSAGE_TYPE;
|
||||
}
|
||||
|
||||
export interface ConversationState {
|
||||
conversation: Message[];
|
||||
}
|
||||
Reference in New Issue
Block a user