mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-25 17:24:07 +00:00
[TS] Fix ContextMenu types (#649)
- No runtime changes - Drastically improves ContextMenu type accuracy / safety - Allows TS strict conversion
This commit is contained in:
@@ -300,7 +300,7 @@ export class LGraphGroup implements Positionable, IPinnable, IColorable {
|
||||
this.resizeTo([...this.children, ...this._nodes, ...nodes], padding)
|
||||
}
|
||||
|
||||
getMenuOptions(): (IContextMenuValue | null)[] {
|
||||
getMenuOptions(): (IContextMenuValue<string> | null)[] {
|
||||
return [
|
||||
{
|
||||
content: this.pinned ? "Unpin" : "Pin",
|
||||
|
||||
Reference in New Issue
Block a user