MCPcopy Create free account
hub / github.com/aws/constructs / removeDependency

Method removeDependency

src/construct.ts:395–402  ·  view source on GitHub ↗

* Remove an ordering dependency on a Dependenable (a construct or set of constructs) * * This removes any dependency added using `node.addDependency()`. It must * use the exact same object that was involved in the `addDependency()` call.

(...deps: IDependable[])

Source from the content-addressed store, hash-verified

393 * use the exact same object that was involved in the `addDependency()` call.
394 */
395 public removeDependency(...deps: IDependable[]) {
396 if (!this._dependencies) {
397 this._dependencies = new Set();
398 }
399 for (const d of deps) {
400 this._dependencies.delete(d);
401 }
402 }
403
404 /**
405 * Constructs that this construct depends on directly

Callers 2

.projenrc.tsFile · 0.80
construct.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected