mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-06 05:30:08 +00:00
Extract error handling with toast message as hook (#825)
This commit is contained in:
@@ -24,6 +24,8 @@ export interface TreeExplorerNode<T = any> {
|
||||
node: TreeExplorerNode<T>,
|
||||
data: TreeExplorerDragAndDropData
|
||||
) => void
|
||||
// Function to handle errors
|
||||
handleError?: (error: Error) => void
|
||||
}
|
||||
|
||||
export interface RenderedTreeExplorerNode<T = any> extends TreeExplorerNode<T> {
|
||||
|
||||
Reference in New Issue
Block a user