nano-injector 1.0.2 → 1.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nano-injector",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Miniature dependency injection library for TypeScript and JavaScript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./typings/index.d.ts",
@@ -32,7 +32,7 @@ export declare class Binder<T> {
32
32
  * will be ignored
33
33
  * @param factory
34
34
  */
35
- toFactory(factory: (injector?: Injector) => T): Binder<T>;
35
+ toFactory(factory: (injector: Injector) => T): Binder<T>;
36
36
  /**
37
37
  * Defines whether value should be a singleton. If yes the value will be created only once
38
38
  * and the same instance will be returned forever