Parameters
- json: {
client_id: string;
extra_data?: {
extra_pnginfo: {
workflow: {
config: {};
extra: {};
groups: {}[];
last_link_id?: number;
last_node_id?: number;
links: [number, number, number, number, number, string][];
nodes: {
id: number;
inputs: {}[];
outputs: {
links: number[];
name: string;
type: string;
}[];
type: string;
}[];
version: number;
};
};
};
prompt: {};
}client_id: string
Optional
extra_data?: {
extra_pnginfo: {
workflow: {
config: {};
extra: {};
groups: {}[];
last_link_id?: number;
last_node_id?: number;
links: [number, number, number, number, number, string][];
nodes: {
id: number;
inputs: {}[];
outputs: {
links: number[];
name: string;
type: string;
}[];
type: string;
}[];
version: number;
};
};
}
extra_pnginfo: {
workflow: {
config: {};
extra: {};
groups: {}[];
last_link_id?: number;
last_node_id?: number;
links: [number, number, number, number, number, string][];
nodes: {
id: number;
inputs: {}[];
outputs: {
links: number[];
name: string;
type: string;
}[];
type: string;
}[];
version: number;
};
}
workflow: {
config: {};
extra: {};
groups: {}[];
last_link_id?: number;
last_node_id?: number;
links: [number, number, number, number, number, string][];
nodes: {
id: number;
inputs: {}[];
outputs: {
links: number[];
name: string;
type: string;
}[];
type: string;
}[];
version: number;
}
config: {}
extra: {}
groups: {}[]
Optional
last_link_id?: number
Optional
last_node_id?: number
links: [number, number, number, number, number, string][]
nodes: {
id: number;
inputs: {}[];
outputs: {
links: number[];
name: string;
type: string;
}[];
type: string;
}[]
version: number
prompt: {}
- base: string = 'comfy'
Returns string
The generated code based on the JSON workflow
Generate typescript code to match a JSON workflow.