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 +1 -1
- package/typings/Injector.d.ts +2 -2
package/package.json
CHANGED
package/typings/Injector.d.ts
CHANGED
|
@@ -51,13 +51,13 @@ export declare class Injector {
|
|
|
51
51
|
* @param type
|
|
52
52
|
* @param args
|
|
53
53
|
*/
|
|
54
|
-
createInstance<ClassT extends new (...args:
|
|
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:
|
|
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
|