mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 17:10:07 +00:00
Properly mirror the new description type
Remove errant logging
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -372,6 +372,7 @@ export type InputSpec = z.infer<typeof zInputSpec>
|
||||
export type ComfyInputsSpec = z.infer<typeof zComfyInputsSpec>
|
||||
export type ComfyOutputTypesSpec = z.infer<typeof zComfyOutputTypesSpec>
|
||||
export type ComfyNodeDef = z.infer<typeof zComfyNodeDef>
|
||||
export type DescriptionSpec = z.infer<typeof zDescriptionSpec>
|
||||
|
||||
export function validateComfyNodeDef(
|
||||
data: any,
|
||||
|
||||
4
src/types/comfy.d.ts
vendored
4
src/types/comfy.d.ts
vendored
@@ -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<string, any>]
|
||||
description?: DescriptionSpec
|
||||
category: string
|
||||
input?: {
|
||||
required?: Record<string, ComfyObjectInfoConfig>
|
||||
|
||||
Reference in New Issue
Block a user