@armscye/container 0.5.4 → 0.5.5
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.
|
@@ -3,7 +3,7 @@ import { ProviderToken } from './provider-token';
|
|
|
3
3
|
/**
|
|
4
4
|
* Configures the `Container` to return a value by invoking a `useFactory` function.
|
|
5
5
|
*/
|
|
6
|
-
export interface FactoryProvider {
|
|
6
|
+
export interface FactoryProvider<T = any> {
|
|
7
7
|
/**
|
|
8
8
|
* Provider token.
|
|
9
9
|
*/
|
|
@@ -12,7 +12,7 @@ export interface FactoryProvider {
|
|
|
12
12
|
* A function to invoke to create an instance for this `token`. The function is
|
|
13
13
|
* invoked with resolved values of token`s from an instance of the container.
|
|
14
14
|
*/
|
|
15
|
-
useFactory: Factory<
|
|
15
|
+
useFactory: Factory<T>;
|
|
16
16
|
/**
|
|
17
17
|
* Whether the created instance should be cached.
|
|
18
18
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@armscye/container",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.5",
|
|
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": "f2c6dfb2e0c1371f917c6b3b0dba73a70302f595"
|
|
32
32
|
}
|