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

Method removeDependency

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

406 * use the exact same object that was involved in the `addDependency()` call.
407 */
408 public removeDependency(...deps: IDependable[]) {
409 if (!this._dependencies) {
410 this._dependencies = new Set();
411 }
412 for (const d of deps) {
413 this._dependencies.delete(d);
414 }
415 }
416
417 /**
418 * 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