nano-injector 1.0.3 → 1.0.4

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.3",
3
+ "version": "1.0.4",
4
4
  "description": "Miniature dependency injection library for TypeScript and JavaScript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./typings/index.d.ts",
@@ -51,13 +51,13 @@ export declare class Injector {
51
51
  * @param type
52
52
  * @param args
53
53
  */
54
- createInstance<ClassT extends new (...args: unknown[]) => unknown>(type: ClassT, ...args: ConstructorParameters<ClassT>): InstanceType<ClassT>;
54
+ createInstance<ClassT extends new (...args: any[]) => unknown>(type: ClassT, ...args: ConstructorParameters<ClassT>): InstanceType<ClassT>;
55
55
  /**
56
56
  * Activates this injector and calls the function with provided arguments
57
57
  * @param func function which should be called
58
58
  * @param args args which should be passed to the called function
59
59
  */
60
- callFunc<FuncT extends (...args: unknown[]) => unknown>(func: FuncT, ...args: Parameters<FuncT>): ReturnType<FuncT>;
60
+ callFunc<FuncT extends (...args: any[]) => unknown>(func: FuncT, ...args: Parameters<FuncT>): ReturnType<FuncT>;
61
61
  /**
62
62
  * Returns bound to the specified provider value. If the value is not found
63
63
  * exception is thrown