Refactor components codes (#538)

* remove deprecated code

* refactor code

* refactor components codes

* fix renderer tests
This commit is contained in:
an-lee
2024-04-19 10:46:04 +08:00
committed by GitHub
parent 5f3ee54bb5
commit e4f5bdcfb9
30 changed files with 509 additions and 1147 deletions

View File

@@ -181,18 +181,6 @@ type EnjoyAppType = {
create: (params: any) => Promise<ConversationType>;
update: (id: string, params: any) => Promise<ConversationType>;
destroy: (id: string) => Promise<void>;
ask: (
id: string,
params: {
messageId?: string;
content?: string;
file?: string;
blob?: {
type: string;
arrayBuffer: ArrayBuffer;
};
}
) => Promise<MessageType[]>;
};
messages: {
findAll: (params: any) => Promise<MessageType[]>;