diff --git a/src/components/sidebar/tabs/DocumentationSidebarTab.vue b/src/components/sidebar/tabs/DocumentationSidebarTab.vue index 829adbe76..d82023ebc 100644 --- a/src/components/sidebar/tabs/DocumentationSidebarTab.vue +++ b/src/components/sidebar/tabs/DocumentationSidebarTab.vue @@ -84,7 +84,6 @@ function collapseOnClick() { } function selectHelp(name: string, value?: string) { if (!docElement.value) { - console.log("doc element doesn't exist") return null } if (def[2]?.select) { diff --git a/src/stores/nodeDefStore.ts b/src/stores/nodeDefStore.ts index 4256f2a68..e8eb8cea1 100644 --- a/src/stores/nodeDefStore.ts +++ b/src/stores/nodeDefStore.ts @@ -5,7 +5,8 @@ import { } from '@/services/nodeSearchService' import { type ComfyNodeDef, - type ComfyInputsSpec as ComfyInputsSpecSchema + type ComfyInputsSpec as ComfyInputsSpecSchema, + type DescriptionSpec } from '@/types/apiTypes' import { defineStore } from 'pinia' import { ComfyWidgetConstructor } from '@/scripts/widgets' @@ -154,7 +155,7 @@ export class ComfyNodeDefImpl { display_name: string category: string python_module: string - description: string + description: DescriptionSpec deprecated: boolean experimental: boolean input: ComfyInputsSpec diff --git a/src/types/apiTypes.ts b/src/types/apiTypes.ts index f3c5710d9..ca4c4a117 100644 --- a/src/types/apiTypes.ts +++ b/src/types/apiTypes.ts @@ -372,6 +372,7 @@ export type InputSpec = z.infer export type ComfyInputsSpec = z.infer export type ComfyOutputTypesSpec = z.infer export type ComfyNodeDef = z.infer +export type DescriptionSpec = z.infer export function validateComfyNodeDef( data: any, diff --git a/src/types/comfy.d.ts b/src/types/comfy.d.ts index db9b8eb60..f9a0d3d5e 100644 --- a/src/types/comfy.d.ts +++ b/src/types/comfy.d.ts @@ -1,6 +1,6 @@ import { LGraphNode, IWidget } from './litegraph' import { ComfyApp } from '../scripts/app' -import type { ComfyNodeDef } from '@/types/apiTypes' +import type { ComfyNodeDef, DescriptionSpec } from '@/types/apiTypes' import type { Keybinding } from '@/types/keyBindingTypes' import type { ComfyCommand } from '@/stores/commandStore' @@ -117,7 +117,7 @@ export interface ComfyExtension { export type ComfyObjectInfo = { name: string display_name?: string - description?: [string | string, string | string, string, Record] + description?: DescriptionSpec category: string input?: { required?: Record