DI Bag API / index / ModuleConstraints
Type Alias: ModuleConstraints<R extends Registrations, Public extends keyof R>
ts
type ModuleConstraints<R extends Registrations, Public extends keyof R> = [R] extends [unknown] ? {
[K in keyof R & (string | symbol)]: RegistrationConstraints<R[K], R, Public, K>;
}[keyof R & (string | symbol)] : never;Defined in: module-types.ts:85
Retained requirements of a module's public and private providers.
Type Parameters
| Type Parameter | Description |
|---|---|
R | - |
Public | - |
See
https://dany-fedorov.github.io/di-bag/guides/api-reference.html#provider-and-module-projections