MCPcopy
hub / github.com/nestjs/nest / isCustomValue

Method isCustomValue

packages/core/injector/module.ts:330–335  ·  view source on GitHub ↗
(provider: any)

Source from the content-addressed store, hash-verified

328 }
329
330 public isCustomValue(provider: any): provider is ValueProvider {
331 return (
332 isObject(provider) &&
333 Object.prototype.hasOwnProperty.call(provider, 'useValue')
334 );
335 }
336
337 public isCustomFactory(provider: any): provider is FactoryProvider {
338 return !isUndefined((provider as FactoryProvider).useFactory);

Callers 1

addCustomProviderMethod · 0.95

Calls 2

isObjectFunction · 0.90
callMethod · 0.45

Tested by

no test coverage detected