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

Method removeDependency

src/construct.ts:398–405  ·  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

396 * use the exact same object that was involved in the `addDependency()` call.
397 */
398 public removeDependency(...deps: IDependable[]) {
399 if (!this._dependencies) {
400 this._dependencies = new Set();
401 }
402 for (const d of deps) {
403 this._dependencies.delete(d);
404 }
405 }
406
407 /**
408 * 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