mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-07 14:09:59 +00:00
[Type] Mark name as required prop for IBaseWidget (#623)
This commit is contained in:
@@ -7,9 +7,9 @@ import { LiteGraph } from "@/litegraph"
|
||||
|
||||
export abstract class BaseWidget implements IBaseWidget {
|
||||
linkedWidgets?: IWidget[]
|
||||
name: string
|
||||
options: IWidgetOptions<unknown>
|
||||
label?: string
|
||||
name?: string
|
||||
type?: TWidgetType
|
||||
value?: TWidgetValue
|
||||
y?: number
|
||||
@@ -40,6 +40,7 @@ export abstract class BaseWidget implements IBaseWidget {
|
||||
|
||||
constructor(widget: IBaseWidget) {
|
||||
Object.assign(this, widget)
|
||||
this.name = widget.name
|
||||
this.options = widget.options
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user