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:
filtered
2024-11-30 05:15:25 +11:00
committed by GitHub
parent 0bf30e7621
commit 2017b9016b
8 changed files with 225 additions and 112 deletions

View File

@@ -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)
)
}
}