mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
Remove deprecated type def on ComfyNodeDef (#1720)
This commit is contained in:
@@ -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]
|
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user