(node: BlueprintNode, context: unknown)
| 108 | |
| 109 | export class RemoveEffectExecutor implements INodeExecutor { |
| 110 | execute(node: BlueprintNode, context: unknown): ExecutionResult { |
| 111 | const ctx = context as EffectContext; |
| 112 | const effectTypeId = ctx.evaluateInput(node.id, 'effectTypeId', '') as string; |
| 113 | |
| 114 | const container = ctx.getEffectContainer(); |
| 115 | if (!container || !effectTypeId) { |
| 116 | return { outputs: { removed: 0 }, nextExec: 'exec' }; |
| 117 | } |
| 118 | |
| 119 | const removed = container.removeByType(effectTypeId); |
| 120 | |
| 121 | return { outputs: { removed }, nextExec: 'exec' }; |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | // ============================================================================= |
nothing calls this directly
no test coverage detected