feat: update code generation interface with type

This commit is contained in:
clean99 2023-11-26 13:45:43 +08:00
parent eee11dc916
commit 9ed42672e7

View File

@ -7,8 +7,14 @@ const ERROR_MESSAGE =
const STOP_MESSAGE = "Code generation stopped"; const STOP_MESSAGE = "Code generation stopped";
export enum CodeType {
HTML = "HTML",
REACT = "react",
}
export interface CodeGenerationParams { export interface CodeGenerationParams {
generationType: "create" | "update"; generationType: "create" | "update";
codeType: CodeType;
image: string; image: string;
resultImage?: string; resultImage?: string;
history?: string[]; history?: string[];