MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / onNodeRemove

Method onNodeRemove

packages/core/src/document/document.ts:435–441  ·  view source on GitHub ↗
(listener: (id: string) => void)

Source from the content-addressed store, hash-verified

433 }
434
435 onNodeRemove(listener: (id: string) => void) {
436 const dispose = this.designer.onEvent(NODE_EVENT.REMOVE, listener)
437
438 return () => {
439 dispose()
440 }
441 }
442}
443
444export function isDocument(obj: any): obj is Document {

Callers

nothing calls this directly

Calls 1

onEventMethod · 0.80

Tested by

no test coverage detected