mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 07:30:11 +00:00
11 lines
256 B
TypeScript
11 lines
256 B
TypeScript
import type { IWidget, LGraphNode } from '@comfyorg/litegraph'
|
|
|
|
export function isImageNode(node: LGraphNode) {
|
|
return (
|
|
node.imgs ||
|
|
(node &&
|
|
node.widgets &&
|
|
node.widgets.findIndex((obj: IWidget) => obj.name === 'image') >= 0)
|
|
)
|
|
}
|