DI Bag API / index / CompositionReport
Type Alias: CompositionReport<B>
ts
type CompositionReport<B> = B extends Builder<infer E, infer C> ? [Reports<E, C>] extends [never] ? void : Reports<E, C> : never;Defined in: composition-report.ts:20
The compile-time verdict for a builder: void when buildContainer() would be accepted, otherwise the same failure buildContainer() reports, including its details. Read it through builder.verifyGraphAtCompileTime() satisfies void; or as CompositionReport<typeof builder>.
Type Parameters
| Type Parameter | Description |
|---|---|
B | - |
See
https://dany-fedorov.github.io/di-bag/guides/tutorial.html#read-compile-time-rejections