From e79013dcfebed7077348a913f351245f6e10c337 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Wed, 27 Nov 2024 13:16:50 -0800 Subject: [PATCH] Remove deprecated type def on ComfyNodeDef (#1720) --- src/types/comfy.ts | 18 ------------------ tests-ui/utils/index.ts | 1 - tests-ui/utils/setup.ts | 6 +----- 3 files changed, 1 insertion(+), 24 deletions(-) diff --git a/src/types/comfy.ts b/src/types/comfy.ts index 1caa65b26..024fbbe32 100644 --- a/src/types/comfy.ts +++ b/src/types/comfy.ts @@ -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 - optional?: Record - } - output?: string[] - output_name: string[] -} - -export type ComfyObjectInfoConfig = [string | any[]] | [string | any[], any] diff --git a/tests-ui/utils/index.ts b/tests-ui/utils/index.ts index 6d26aa493..661af8bf8 100644 --- a/tests-ui/utils/index.ts +++ b/tests-ui/utils/index.ts @@ -73,7 +73,6 @@ export async function checkBeforeAndAfterReload(graph, cb) { * @param { string } name * @param { Record } input * @param { (string | string[])[] | Record } output - * @returns { Record } */ export function makeNodeDef(name, input, output = {}) { const nodeDef = { diff --git a/tests-ui/utils/setup.ts b/tests-ui/utils/setup.ts index eabcc6cd9..8e2c4c538 100644 --- a/tests-ui/utils/setup.ts +++ b/tests-ui/utils/setup.ts @@ -29,14 +29,10 @@ export interface APIConfig { userData?: Record } -/** - * @typedef { import("../../src/types/comfy").ComfyObjectInfo } ComfyObjectInfo - */ - /** * @param {{ * mockExtensions?: string[], - * mockNodeDefs?: Record, + * mockNodeDefs?: Record, * settings?: Record * userConfig?: {storage: "server" | "browser", users?: Record, migrated?: boolean }, * userData?: Record