DI Bag API / index / ModuleContributionConstraints
Type Alias: ModuleContributionConstraints<C, R extends Registrations, P extends keyof R>
ts
type ModuleContributionConstraints<C, R extends Registrations, P extends keyof R> = C extends ContributionConstraint ? Contribution<C['token'], PublicProvider<C['registration']>> | RegistrationConstraints<C['registration'], R, P> : never;Defined in: contribution-types.ts:69
Retain a contribution's projected provider and its checked needs when its builder seals. Lifetime reach is retained separately as compact obligations. A contribution retained from an inner installation is already projected and has no needs left to nest.
Type Parameters
| Type Parameter | Description |
|---|---|
C | - |
R | - |
P | - |
See
https://dany-fedorov.github.io/di-bag/guides/tutorial.html#compose-an-ordered-collection