You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns a rewired version of the module found at filename. Use rewire() exactly like require().
10
+
*/
11
+
(filename: string): RewiredModule;
12
+
}
13
+
14
+
interfaceRewiredModule{
15
+
/**
16
+
* Takes all enumerable keys of obj as variable names and sets the values respectively. Returns a function which can be called to revert the change.
17
+
*/
18
+
__set__(obj: Object): Function;
19
+
/**
20
+
* Sets the internal variable name to the given value. Returns a function which can be called to revert the change.
21
+
*/
22
+
__set__(name: string,value: any): Function;
23
+
/**
24
+
* Returns the private variable with the given name.
25
+
*/
26
+
__get__(name: string): any;
27
+
/**
28
+
* Returns a function which - when being called - sets obj, executes the given callback and reverts obj. If callback returns a promise, obj is only reverted after
29
+
* the promise has been resolved or rejected. For your convenience the returned function passes the received promise through.
0 commit comments