(
wrapper: InstanceWrapper<T>,
param: Type<any> | string | symbol,
dependencyContext: InjectorDependencyContext,
moduleRef: Module,
resolutionContext: ResolutionContext = { contextId: STATIC_CONTEXT },
keyOrIndex?: symbol | string | number,
)
| 483 | } |
| 484 | |
| 485 | public async resolveSingleParam<T>( |
| 486 | wrapper: InstanceWrapper<T>, |
| 487 | param: Type<any> | string | symbol, |
| 488 | dependencyContext: InjectorDependencyContext, |
| 489 | moduleRef: Module, |
| 490 | resolutionContext: ResolutionContext = { contextId: STATIC_CONTEXT }, |
| 491 | keyOrIndex?: symbol | string | number, |
| 492 | ) { |
| 493 | if (isUndefined(param)) { |
| 494 | this.logger.log( |
| 495 | 'Nest encountered an undefined dependency. This may be due to a circular import or a missing dependency declaration.', |
| 496 | ); |
| 497 | throw new UndefinedDependencyException( |
| 498 | wrapper.name, |
| 499 | dependencyContext, |
| 500 | moduleRef, |
| 501 | ); |
| 502 | } |
| 503 | const token = this.resolveParamToken(wrapper, param); |
| 504 | return this.resolveComponentWrapper( |
| 505 | moduleRef, |
| 506 | token, |
| 507 | dependencyContext, |
| 508 | wrapper, |
| 509 | resolutionContext, |
| 510 | keyOrIndex, |
| 511 | ); |
| 512 | } |
| 513 | |
| 514 | public resolveParamToken<T>( |
| 515 | wrapper: InstanceWrapper<T>, |
no test coverage detected