DI Bag API / index / Contribution
Type Alias: Contribution<T extends TokenBase = TokenBase, V extends ProviderOrFactory = ProviderOrFactory>
ts
type Contribution<T extends TokenBase = TokenBase, V extends ProviderOrFactory = ProviderOrFactory> = {
readonly kind: 'contribution';
readonly token: T;
readonly registration: V;
};Defined in: contribution-types.ts:14
Each union member retains one independently checked provider and its group.
See
https://dany-fedorov.github.io/di-bag/guides/tutorial.html#compose-an-ordered-collection
Type Parameters
| Type Parameter | Description |
|---|---|
T | - |
V | - |
Properties
kind
ts
readonly kind: 'contribution';Defined in: contribution-types.ts:15
registration
ts
readonly registration: V;Defined in: contribution-types.ts:15
token
ts
readonly token: T;Defined in: contribution-types.ts:15