Remove deprecated type def on ComfyNodeDef (#1720)

This commit is contained in:
Chenlei Hu
2024-11-27 13:16:50 -08:00
committed by GitHub
parent 08f3370828
commit e79013dcfe
3 changed files with 1 additions and 24 deletions

View File

@@ -159,21 +159,3 @@ export interface ComfyExtension {
[key: string]: any [key: string]: any
} }
/**
* @deprecated Use ComfyNodeDef instead
*/
export type ComfyObjectInfo = {
name: string
display_name?: string
description?: string
category: string
input?: {
required?: Record<string, ComfyObjectInfoConfig>
optional?: Record<string, ComfyObjectInfoConfig>
}
output?: string[]
output_name: string[]
}
export type ComfyObjectInfoConfig = [string | any[]] | [string | any[], any]

View File

@@ -73,7 +73,6 @@ export async function checkBeforeAndAfterReload(graph, cb) {
* @param { string } name * @param { string } name
* @param { Record<string, string | [string | string[], any]> } input * @param { Record<string, string | [string | string[], any]> } input
* @param { (string | string[])[] | Record<string, string | string[]> } output * @param { (string | string[])[] | Record<string, string | string[]> } output
* @returns { Record<string, import("../../src/types/comfy").ComfyObjectInfo> }
*/ */
export function makeNodeDef(name, input, output = {}) { export function makeNodeDef(name, input, output = {}) {
const nodeDef = { const nodeDef = {

View File

@@ -29,14 +29,10 @@ export interface APIConfig {
userData?: Record<string, any> userData?: Record<string, any>
} }
/**
* @typedef { import("../../src/types/comfy").ComfyObjectInfo } ComfyObjectInfo
*/
/** /**
* @param {{ * @param {{
* mockExtensions?: string[], * mockExtensions?: string[],
* mockNodeDefs?: Record<string, ComfyObjectInfo>, * mockNodeDefs?: Record<string, any>,
* settings?: Record<string, string> * settings?: Record<string, string>
* userConfig?: {storage: "server" | "browser", users?: Record<string, any>, migrated?: boolean }, * userConfig?: {storage: "server" | "browser", users?: Record<string, any>, migrated?: boolean },
* userData?: Record<string, any> * userData?: Record<string, any>