UNPKG

@inversifyjs/core

Version:

InversifyJs core package

12 lines 986 B
import { type ServiceIdentifier } from '@inversifyjs/common'; import { type GetOptions } from './GetOptions.js'; import { type OptionalGetOptions } from './OptionalGetOptions.js'; export interface ResolutionContext { get<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options: OptionalGetOptions): TActivated | undefined; get<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options?: GetOptions): TActivated; getAll<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options?: GetOptions): TActivated[]; getAllAsync<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options?: GetOptions): Promise<TActivated[]>; getAsync<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options: OptionalGetOptions): Promise<TActivated | undefined>; getAsync<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options?: GetOptions): Promise<TActivated>; } //# sourceMappingURL=ResolutionContext.d.ts.map