mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-24 00:09:32 +00:00
Add TS types - API (#1736)
* nit * Add TS types - API events * Replace all API event emits with type-safe variants * Add missing API type * nit * Remove test code, nit
This commit is contained in:
@@ -1102,10 +1102,9 @@ export class GroupNodeHandler {
|
||||
const innerNodeIndex = this.innerNodes?.findIndex((n) => n.id == id)
|
||||
if (innerNodeIndex > -1) {
|
||||
this.node.runningInternalNodeId = innerNodeIndex
|
||||
api.dispatchEvent(
|
||||
new CustomEvent(type, {
|
||||
detail: getEvent(detail, this.node.id + '', this.node)
|
||||
})
|
||||
api.dispatchCustomEvent(
|
||||
type,
|
||||
getEvent(detail, `${this.node.id}`, this.node)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user