From 441f14c12e7f41af719d38e819391c6badb0318b Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Fri, 9 May 2025 10:34:45 +1000 Subject: [PATCH] [TS] Fix callback type prevents use as method (#1035) --- src/types/widgets.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/widgets.ts b/src/types/widgets.ts index 17127804c..90817d9f3 100644 --- a/src/types/widgets.ts +++ b/src/types/widgets.ts @@ -250,10 +250,10 @@ export interface IBaseWidget< * @param node The node this widget belongs to. * @returns The layout size of the widget. */ - computeLayoutSize?: ( + computeLayoutSize?( this: IBaseWidget, node: LGraphNode - ) => { + ): { minHeight: number maxHeight?: number minWidth: number