MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / applyDefaultScope

Method applyDefaultScope

packages/context/src/binding.ts:708–713  ·  view source on GitHub ↗

* Apply default scope to the binding. It only changes the scope if it's not * set yet * @param scope - Default binding scope

(scope: BindingScope)

Source from the content-addressed store, hash-verified

706 * @param scope - Default binding scope
707 */
708 applyDefaultScope(scope: BindingScope): this {
709 if (!this._scope) {
710 this.inScope(scope);
711 }
712 return this;
713 }
714
715 /**
716 * Set the `_getValue` function

Callers 2

applyClassBindingOptionsFunction · 0.80
binding.unit.tsFile · 0.80

Calls 1

inScopeMethod · 0.95

Tested by

no test coverage detected