composed-di 0.2.6 → 0.2.7
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/serviceModule.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ServiceKey } from './ServiceKey';
|
|
2
2
|
import { ServiceFactory } from './ServiceFactory';
|
|
3
3
|
import { ServiceScope } from './ServiceScope';
|
|
4
|
-
type GenericFactory = ServiceFactory<unknown, readonly ServiceKey<
|
|
4
|
+
type GenericFactory = ServiceFactory<unknown, readonly ServiceKey<any>[]>;
|
|
5
5
|
export declare class ServiceModule {
|
|
6
6
|
readonly factories: GenericFactory[];
|
|
7
7
|
private constructor();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceModule.d.ts","sourceRoot":"","sources":["../src/ServiceModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,KAAK,cAAc,GAAG,cAAc,CAAC,OAAO,EAAE,SAAS,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"ServiceModule.d.ts","sourceRoot":"","sources":["../src/ServiceModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,KAAK,cAAc,GAAG,cAAc,CAAC,OAAO,EAAE,SAAS,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;AAG1E,qBAAa,aAAa;IACJ,QAAQ,CAAC,SAAS,EAAE,cAAc,EAAE;IAAxD,OAAO;IAOM,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAqBnD;;;;;;;;;OASG;IACI,OAAO,CAAC,KAAK,CAAC,EAAE,YAAY;IAQnC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,aAAa,GAAG,cAAc,CAAC,EAAE,GAAG,aAAa;CAcxE"}
|
package/package.json
CHANGED
package/src/ServiceModule.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { ServiceKey } from './ServiceKey';
|
|
|
2
2
|
import { ServiceFactory } from './ServiceFactory';
|
|
3
3
|
import { ServiceScope } from './ServiceScope';
|
|
4
4
|
|
|
5
|
-
type GenericFactory = ServiceFactory<unknown, readonly ServiceKey<
|
|
6
|
-
type GenericKey = ServiceKey<
|
|
5
|
+
type GenericFactory = ServiceFactory<unknown, readonly ServiceKey<any>[]>;
|
|
6
|
+
type GenericKey = ServiceKey<any>;
|
|
7
7
|
|
|
8
8
|
export class ServiceModule {
|
|
9
9
|
private constructor(readonly factories: GenericFactory[]) {
|