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";
|
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[];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user