(
typeOrToken: Type<TInput> | string | symbol,
options: ModuleRefGetOrResolveOpts = {},
)
| 608 | } |
| 609 | |
| 610 | public get<TInput = any, TResult = TInput>( |
| 611 | typeOrToken: Type<TInput> | string | symbol, |
| 612 | options: ModuleRefGetOrResolveOpts = {}, |
| 613 | ): TResult | Array<TResult> { |
| 614 | options.strict ??= true; |
| 615 | options.each ??= false; |
| 616 | |
| 617 | return this.find<TInput, TResult>( |
| 618 | typeOrToken, |
| 619 | options.strict |
| 620 | ? { |
| 621 | moduleId: self.id, |
| 622 | each: options.each, |
| 623 | } |
| 624 | : options, |
| 625 | ); |
| 626 | } |
| 627 | |
| 628 | public resolve<TInput = any, TResult = TInput>( |
| 629 | typeOrToken: Type<TInput> | string | symbol, |