mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-28 02:34:10 +00:00
[TS] Use Litegraph strict narrowed type (#2781)
This commit is contained in:
@@ -30,7 +30,7 @@ export const useContextMenuTranslation = () => {
|
||||
LGraphCanvas.prototype.getCanvasMenuOptions = getCanvasCenterMenuOptions
|
||||
|
||||
function translateMenus(
|
||||
values: (IContextMenuValue | string | null)[] | undefined,
|
||||
values: readonly (IContextMenuValue | string | null)[] | undefined,
|
||||
options: IContextMenuOptions
|
||||
) {
|
||||
if (!values) return
|
||||
|
||||
Reference in New Issue
Block a user