Skip to content

Interface: ResolutionContext

Defined in: @inversifyjs/core:

See

https://inversify.io/

Methods

get()

Call Signature

ts
get<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options: OptionalGetOptions): TActivated | undefined;

Defined in: @inversifyjs/core:

Type Parameters
Type Parameter
TActivated
Parameters
ParameterType
serviceIdentifierServiceIdentifier<TActivated>
optionsOptionalGetOptions
Returns

TActivated | undefined

Call Signature

ts
get<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options?: GetOptions): TActivated;

Defined in: @inversifyjs/core:

Type Parameters
Type Parameter
TActivated
Parameters
ParameterType
serviceIdentifierServiceIdentifier<TActivated>
options?GetOptions
Returns

TActivated


getAll()

ts
getAll<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options?: GetOptions): TActivated[];

Defined in: @inversifyjs/core:

Type Parameters

Type Parameter
TActivated

Parameters

ParameterType
serviceIdentifierServiceIdentifier<TActivated>
options?GetOptions

Returns

TActivated[]


getAllAsync()

ts
getAllAsync<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options?: GetOptions): Promise<TActivated[]>;

Defined in: @inversifyjs/core:

Type Parameters

Type Parameter
TActivated

Parameters

ParameterType
serviceIdentifierServiceIdentifier<TActivated>
options?GetOptions

Returns

Promise<TActivated[]>


getAsync()

Call Signature

ts
getAsync<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options: OptionalGetOptions): Promise<TActivated | undefined>;

Defined in: @inversifyjs/core:

Type Parameters
Type Parameter
TActivated
Parameters
ParameterType
serviceIdentifierServiceIdentifier<TActivated>
optionsOptionalGetOptions
Returns

Promise<TActivated | undefined>

Call Signature

ts
getAsync<TActivated>(serviceIdentifier: ServiceIdentifier<TActivated>, options?: GetOptions): Promise<TActivated>;

Defined in: @inversifyjs/core:

Type Parameters
Type Parameter
TActivated
Parameters
ParameterType
serviceIdentifierServiceIdentifier<TActivated>
options?GetOptions
Returns

Promise<TActivated>