[TS] Fix callback type prevents use as method (#1035)

This commit is contained in:
filtered
2025-05-09 10:34:45 +10:00
committed by GitHub
parent 1adc0b6c00
commit 441f14c12e

View File

@@ -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