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

Function toOptions

packages/core/src/application.ts:667–672  ·  view source on GitHub ↗

* Normalize name or options to `BindingFromClassOptions` * @param nameOrOptions - Name or options for binding from class

(nameOrOptions?: string | BindingFromClassOptions)

Source from the content-addressed store, hash-verified

665 * @param nameOrOptions - Name or options for binding from class
666 */
667function toOptions(nameOrOptions?: string | BindingFromClassOptions) {
668 if (typeof nameOrOptions === 'string') {
669 return {name: nameOrOptions};
670 }
671 return nameOrOptions ?? {};
672}
673
674/**
675 * Options to set up application shutdown

Callers 6

controllerMethod · 0.70
serverMethod · 0.70
componentMethod · 0.70
lifeCycleObserverMethod · 0.70
serviceMethod · 0.70
interceptorMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected