mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 10:59:53 +00:00
Remove deprecated type def on ComfyNodeDef (#1720)
This commit is contained in:
@@ -159,21 +159,3 @@ export interface ComfyExtension {
|
||||
|
||||
[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 { Record<string, string | [string | string[], any]> } input
|
||||
* @param { (string | string[])[] | Record<string, string | string[]> } output
|
||||
* @returns { Record<string, import("../../src/types/comfy").ComfyObjectInfo> }
|
||||
*/
|
||||
export function makeNodeDef(name, input, output = {}) {
|
||||
const nodeDef = {
|
||||
|
||||
@@ -29,14 +29,10 @@ export interface APIConfig {
|
||||
userData?: Record<string, any>
|
||||
}
|
||||
|
||||
/**
|
||||
* @typedef { import("../../src/types/comfy").ComfyObjectInfo } ComfyObjectInfo
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {{
|
||||
* mockExtensions?: string[],
|
||||
* mockNodeDefs?: Record<string, ComfyObjectInfo>,
|
||||
* mockNodeDefs?: Record<string, any>,
|
||||
* settings?: Record<string, string>
|
||||
* userConfig?: {storage: "server" | "browser", users?: Record<string, any>, migrated?: boolean },
|
||||
* userData?: Record<string, any>
|
||||
|
||||
Reference in New Issue
Block a user