Browse Source

fix: ️ small type fix

getCustomWidgets expects a plain record and not an array of records
pull/955/head
melMass 1 year ago
parent
commit
5190aa284d
  1. 4
      web/types/comfy.d.ts

4
web/types/comfy.d.ts vendored

@ -30,9 +30,7 @@ export interface ComfyExtension {
getCustomWidgets(
app: ComfyApp
): 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

Loading…
Cancel
Save