Skip to content

DI Bag API / index / SelectedRegistrations

Type Alias: SelectedRegistrations<K extends readonly unknown[], O> ​

ts
type SelectedRegistrations<K extends readonly unknown[], O> = {
    [P in Extract<SelectionKey<K[number]>, keyof O>]: Extract<O[P], ProviderOrFactory>;
};

Defined in: types.ts:350

Select provider-valued own fields corresponding to a checked key tuple.

Type Parameters ​

Type ParameterDescription
K-
O-

See ​

https://dany-fedorov.github.io/di-bag/guides/tutorial.html#create-an-independent-container

Ordinary services. Checked composition. Explicit ownership.