mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +00:00
[TS] Fix callback type prevents use as method (#1035)
This commit is contained in:
@@ -250,10 +250,10 @@ export interface IBaseWidget<
|
|||||||
* @param node The node this widget belongs to.
|
* @param node The node this widget belongs to.
|
||||||
* @returns The layout size of the widget.
|
* @returns The layout size of the widget.
|
||||||
*/
|
*/
|
||||||
computeLayoutSize?: (
|
computeLayoutSize?(
|
||||||
this: IBaseWidget,
|
this: IBaseWidget,
|
||||||
node: LGraphNode
|
node: LGraphNode
|
||||||
) => {
|
): {
|
||||||
minHeight: number
|
minHeight: number
|
||||||
maxHeight?: number
|
maxHeight?: number
|
||||||
minWidth: number
|
minWidth: number
|
||||||
|
|||||||
Reference in New Issue
Block a user