inwire 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -378,7 +378,7 @@ declare class ContainerBuilder<TContract extends Record<string, any> = Record<st
|
|
|
378
378
|
* Applies a module — a function that chains `.add()` calls on this builder.
|
|
379
379
|
* `c` in the module's factories is fully typed with all previously registered deps.
|
|
380
380
|
*/
|
|
381
|
-
addModule<TNew extends Record<string, any>>(module: (builder: ContainerBuilder<TContract, TBuilt>) => ContainerBuilder<TContract, TNew>): ContainerBuilder<TContract, TNew>;
|
|
381
|
+
addModule<TNew extends Record<string, any>>(module: (builder: ContainerBuilder<TContract, TBuilt>) => ContainerBuilder<TContract, TNew>): ContainerBuilder<TContract, TBuilt & TNew>;
|
|
382
382
|
/**
|
|
383
383
|
* Merges a standalone builder into this one. All factories of `other` are copied.
|
|
384
384
|
* The accumulated type becomes `TBuilt & TOther`, so subsequent factories can
|
package/package.json
CHANGED