Skip to content

DI Bag API / index / DiBagPolicy

Interface: DiBagPolicy ​

Defined in: types.ts:59

Project-wide compile-time policy switches. Augment it to relax a check: declare module 'di-bag' { interface DiBagPolicy { readonly structuralThenables: 'allow' } }.

See ​

https://dany-fedorov.github.io/di-bag/guides/api-reference.html#graph-composition-support-types

Ordinary services. Checked composition. Explicit ownership.