@armscye/container 0.5.4 → 0.5.6
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/class-provider.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NoArgument } from '@armscye/core';
|
|
2
2
|
import { ProviderToken } from './provider-token';
|
|
3
3
|
/**
|
|
4
|
-
* Configures the `Container` to return
|
|
4
|
+
* Configures the `Container` to return an instance of `useClass` for a token.
|
|
5
5
|
*/
|
|
6
|
-
export interface ClassProvider
|
|
6
|
+
export interface ClassProvider {
|
|
7
7
|
/**
|
|
8
8
|
* Provider token.
|
|
9
9
|
*/
|
|
@@ -11,7 +11,7 @@ export interface ClassProvider<T = any> {
|
|
|
11
11
|
/**
|
|
12
12
|
* Class to instantiate for the `token`.
|
|
13
13
|
*/
|
|
14
|
-
useClass: NoArgument<
|
|
14
|
+
useClass: NoArgument<any>;
|
|
15
15
|
/**
|
|
16
16
|
* Whether the created instance should be cached.
|
|
17
17
|
*/
|
|
@@ -10,7 +10,7 @@ export interface FactoryProvider {
|
|
|
10
10
|
provide: ProviderToken;
|
|
11
11
|
/**
|
|
12
12
|
* A function to invoke to create an instance for this `token`. The function is
|
|
13
|
-
* invoked with resolved values of token`s from an instance of the container.
|
|
13
|
+
* invoked with resolved values of `token`s from an instance of the container.
|
|
14
14
|
*/
|
|
15
15
|
useFactory: Factory<any>;
|
|
16
16
|
/**
|
package/dist/value-provider.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ProviderToken } from './provider-token';
|
|
|
2
2
|
/**
|
|
3
3
|
* Configures the `Container` to return a value for a token.
|
|
4
4
|
*/
|
|
5
|
-
export interface ValueProvider
|
|
5
|
+
export interface ValueProvider {
|
|
6
6
|
/**
|
|
7
7
|
* Provider token.
|
|
8
8
|
*/
|
|
@@ -10,5 +10,5 @@ export interface ValueProvider<T = any> {
|
|
|
10
10
|
/**
|
|
11
11
|
* The value to inject.
|
|
12
12
|
*/
|
|
13
|
-
useValue:
|
|
13
|
+
useValue: any;
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@armscye/container",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"description": "A collection of shared standard TypeScript definitions (@container)",
|
|
5
5
|
"author": "Augustus Kamau",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"publishConfig": {
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "7bed2def7aec2263667c5b863ebc1bdc9c8802b1"
|
|
32
32
|
}
|