Skip to content

Commit dd0b878

Browse files
committed
feat: remove unused types
1 parent f9b2642 commit dd0b878

File tree

10 files changed

+5
-82
lines changed

10 files changed

+5
-82
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# `@askcodebase/react-stream-chat`
22

3+
## Features
4+
5+
1. Single `<ReactStreamChat />` React Component
6+
2. Conversations Support
7+
38
## Develop
49

510
```bash

src/components/Chat/Chat.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ import {
1010

1111
import { saveConversation, saveConversations } from '@/utils/app/conversation';
1212
import { throttle } from '@/utils/data/throttle';
13-
1413
import { ChatBody, Conversation, Message } from '@/types/chat';
15-
1614
import HomeContext from '@/components/ReactStreamChat/home.context';
17-
1815
import { ChatInput } from './ChatInput';
1916
import { MemoizedChatMessage } from './MemoizedChatMessage';
2017

src/components/ReactStreamChat/home.state.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Conversation, Message } from '@/types/chat';
2-
import { ErrorMessage } from '@/types/error';
32
import { FolderInterface } from '@/types/folder';
43
import { OpenAIModel, OpenAIModelID } from '@/types/openai';
54
import { PluginKey } from '@/types/plugin';
@@ -11,7 +10,6 @@ export interface HomeInitialState {
1110
loading: boolean;
1211
lightMode: 'light' | 'dark';
1312
messageIsStreaming: boolean;
14-
modelError: ErrorMessage | null;
1513
models: OpenAIModel[];
1614
folders: FolderInterface[];
1715
conversations: Conversation[];
@@ -35,7 +33,6 @@ export const initialState: HomeInitialState = {
3533
pluginKeys: [],
3634
lightMode: 'dark',
3735
messageIsStreaming: false,
38-
modelError: null,
3936
models: [],
4037
folders: [],
4138
conversations: [],

src/types/env.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/types/error.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/types/google.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/types/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/types/openai.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { OPENAI_API_TYPE } from '../utils/app/const';
2-
31
export interface OpenAIModel {
42
id: string;
53
name: string;

src/types/plugin.ts

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/types/storage.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Conversation } from './chat';
22
import { FolderInterface } from './folder';
3-
import { PluginKey } from './plugin';
43
import { Prompt } from './prompt';
54

65
// keep track of local storage schema
@@ -16,6 +15,4 @@ export interface LocalStorage {
1615
// added showChatbar and showPromptbar (3/26/23)
1716
showChatbar: boolean;
1817
showPromptbar: boolean;
19-
// added plugin keys (4/3/23)
20-
pluginKeys: PluginKey[];
2118
}

0 commit comments

Comments
 (0)