Skip to content

DI Bag API / index / ServicesOf

Type Alias: ServicesOf<R extends Registrations> ​

ts
type ServicesOf<R extends Registrations> = {
    [K in keyof R]: ProviderOutput<R[K]>;
};

Defined in: types.ts:18

Map providers to the exact service values they expose.

Type Parameters ​

Type ParameterDescription
R-

See ​

https://dany-fedorov.github.io/di-bag/guides/api-reference.html#graph-composition-support-types

Ordinary services. Checked composition. Explicit ownership.