Parameters
- cfg: Record<string, {
inputs: Record<string, {
metadata?: {
default?: unknown;
max?: unknown;
min?: unknown;
step?: unknown;
};
required: boolean;
type: string | string[];
}>;
metadata: {
category: string;
description: string;
display_name: string;
is_output_node: boolean;
name: string;
python_module: string;
};
outputs: Record<string, {
is_list: boolean;
type: string;
}>;
}> Optional
basename: string
Returns string
string encoded typescript sourcecode implementing the interface.
Compile a normalized json from the comfyui backend into a string representing the final code.