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

Function isServiceProvider

packages/boot/src/booters/service.booter.ts:76–80  ·  view source on GitHub ↗
(cls: Constructor<unknown>)

Source from the content-addressed store, hash-verified

74};
75
76function isServiceProvider(cls: Constructor<unknown>) {
77 const hasSupportedName = cls.name.endsWith('Provider');
78 const hasValueMethod = typeof cls.prototype.value === 'function';
79 return hasSupportedName && hasValueMethod;
80}
81
82function isBindableClass(cls: Constructor<unknown>) {
83 if (MetadataInspector.getClassMetadata(BINDING_METADATA_KEY, cls)) {

Callers 1

isBindableClassFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected