Skip to content

DI Bag API / index / ReboundProviders

Type Alias: ReboundProviders<R extends Registrations, K extends readonly unknown[], O extends Registrations> ​

ts
type ReboundProviders<R extends Registrations, K extends readonly unknown[], O extends Registrations> = {
    [P in keyof O]: P extends symbol ? SelectedTokenForKey<K, P> extends infer T extends TokenBase ? [T] extends [never] ? P extends keyof R ? TokenBinding<BoundToken<R[P]>, O[P]> : O[P] : TokenBinding<T, O[P]> : never : O[P];
};

Defined in: types.ts:372

Rebind selected symbol-keyed replacements to their original typed-token contracts.

Type Parameters ​

Type ParameterDescription
R-
K-
O-

Ordinary services. Checked composition. Explicit ownership.