feat: update code generation interface with type
This commit is contained in:
parent
eee11dc916
commit
9ed42672e7
@ -7,8 +7,14 @@ const ERROR_MESSAGE =
|
||||
|
||||
const STOP_MESSAGE = "Code generation stopped";
|
||||
|
||||
export enum CodeType {
|
||||
HTML = "HTML",
|
||||
REACT = "react",
|
||||
}
|
||||
|
||||
export interface CodeGenerationParams {
|
||||
generationType: "create" | "update";
|
||||
codeType: CodeType;
|
||||
image: string;
|
||||
resultImage?: string;
|
||||
history?: string[];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user