mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-11 02:20:08 +00:00
[TS] Remove optional from widget y and type (#752)
- Fixes widget `type` marked as optional - it is required - Fixes widget `y` marked as optional - now initialised to 0
This commit is contained in:
@@ -10,9 +10,9 @@ export abstract class BaseWidget implements IBaseWidget {
|
||||
name: string
|
||||
options: IWidgetOptions<unknown>
|
||||
label?: string
|
||||
type?: TWidgetType
|
||||
type: TWidgetType
|
||||
value?: TWidgetValue
|
||||
y?: number
|
||||
y: number = 0
|
||||
last_y?: number
|
||||
width?: number
|
||||
disabled?: boolean
|
||||
@@ -42,6 +42,7 @@ export abstract class BaseWidget implements IBaseWidget {
|
||||
Object.assign(this, widget)
|
||||
this.name = widget.name
|
||||
this.options = widget.options
|
||||
this.type = widget.type
|
||||
}
|
||||
|
||||
get outline_color() {
|
||||
|
||||
Reference in New Issue
Block a user