UNPKG

1.08 kBTypeScriptView Raw
1import { Abstract, Type } from '@nestjs/common';
2import { GetOrResolveOptions } from '@nestjs/common/interfaces';
3import { Injector } from './injector';
4import { InstanceLinksHost } from './instance-links-host';
5import { ContextId } from './instance-wrapper';
6import { Module } from './module';
7export declare abstract class AbstractInstanceResolver {
8 protected abstract instanceLinksHost: InstanceLinksHost;
9 protected abstract injector: Injector;
10 protected abstract get<TInput = any, TResult = TInput>(typeOrToken: Type<TInput> | Function | string | symbol, options?: GetOrResolveOptions): TResult | Array<TResult>;
11 protected find<TInput = any, TResult = TInput>(typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol, options: {
12 moduleId?: string;
13 each?: boolean;
14 }): TResult | Array<TResult>;
15 protected resolvePerContext<TInput = any, TResult = TInput>(typeOrToken: Type<TInput> | Abstract<TInput> | string | symbol, contextModule: Module, contextId: ContextId, options?: GetOrResolveOptions): Promise<TResult | Array<TResult>>;
16}