fix: ️ small type fix

getCustomWidgets expects a plain record and not an array of records
This commit is contained in:
melMass 2023-07-21 13:19:05 +02:00
parent 0115018695
commit 5190aa284d
1 changed files with 1 additions and 3 deletions

View File

@ -30,9 +30,7 @@ export interface ComfyExtension {
getCustomWidgets( getCustomWidgets(
app: ComfyApp app: ComfyApp
): Promise< ): Promise<
Array< Record<string, (node, inputName, inputData, app) => { widget?: IWidget; minWidth?: number; minHeight?: number }>
Record<string, (node, inputName, inputData, app) => { widget?: IWidget; minWidth?: number; minHeight?: number }>
>
>; >;
/** /**
* Allows the extension to add additional handling to the node before it is registered with LGraph * Allows the extension to add additional handling to the node before it is registered with LGraph