From 214defbdb458c8b9e5767e168004bc438bd3bd34 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Mon, 10 Mar 2025 14:34:09 -0400 Subject: [PATCH] [TS] Remove IBaseWidget.element prop (#741) Remove the prop as it is a impl detail of the frontend. --- src/types/widgets.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/types/widgets.ts b/src/types/widgets.ts index 8282b8dcf..8d234177a 100644 --- a/src/types/widgets.ts +++ b/src/types/widgets.ts @@ -122,13 +122,9 @@ export interface IMultilineStringWidget extends - IBaseWidget { - +export interface ICustomWidget extends IBaseWidget { type?: "custom" value: string | object - - element?: TElement } /** @@ -143,7 +139,7 @@ export type TWidgetValue = IWidget["value"] * The base type for all widgets. Should not be implemented directly. * @see IWidget */ -export interface IBaseWidget { +export interface IBaseWidget { linkedWidgets?: IWidget[] name: string @@ -180,9 +176,6 @@ export interface IBaseWidget { tooltip?: string - /** HTML widget element */ - element?: TElement - // TODO: Confirm this format callback?( value: any,