mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-26 01:34:07 +00:00
Enable ts-strict for uploadImage.ts (#1280)
This commit is contained in:
7
src/types/comfy.d.ts
vendored
7
src/types/comfy.d.ts
vendored
@@ -59,7 +59,7 @@ export interface ComfyExtension {
|
||||
* @param app The ComfyUI app instance
|
||||
*/
|
||||
addCustomNodeDefs?(
|
||||
defs: Record<string, ComfyObjectInfo>,
|
||||
defs: Record<string, ComfyNodeDef>,
|
||||
app: ComfyApp
|
||||
): Promise<void> | void
|
||||
/**
|
||||
@@ -76,7 +76,7 @@ export interface ComfyExtension {
|
||||
*/
|
||||
beforeRegisterNodeDef?(
|
||||
nodeType: typeof LGraphNode,
|
||||
nodeData: ComfyObjectInfo,
|
||||
nodeData: ComfyNodeDef,
|
||||
app: ComfyApp
|
||||
): Promise<void> | void
|
||||
|
||||
@@ -114,6 +114,9 @@ export interface ComfyExtension {
|
||||
[key: string]: any
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use ComfyNodeDef instead
|
||||
*/
|
||||
export type ComfyObjectInfo = {
|
||||
name: string
|
||||
display_name?: string
|
||||
|
||||
Reference in New Issue
Block a user