DI Bag API / index / ModuleContributions
Type Alias: ModuleContributions<M>
ts
type ModuleContributions<M> = M extends Module<infer _P, infer _R, infer C, infer _D> ? Readonly<{
[T in Groups<C>['token'] as TokenKey<T>]: T extends CollectionTokenBase ? readonly CollectionItem<T>[] : ReadonlyArray<TokenService<T>>;
}> : never;Defined in: contribution-types.ts:76
Project a module's typed-token collections as readonly service arrays.
Type Parameters
| Type Parameter | Description |
|---|---|
M | - |
See
https://dany-fedorov.github.io/di-bag/guides/tutorial.html#compose-an-ordered-collection