@scalvert/bin-tester 2.1.0 → 2.1.1
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/dist/index.d.ts +18 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -52,13 +52,29 @@ interface RunBin {
|
|
|
52
52
|
*/
|
|
53
53
|
(): execa.ExecaChildProcess<string>;
|
|
54
54
|
/**
|
|
55
|
-
* A runBin implementation that takes varargs.
|
|
55
|
+
* A runBin implementation that takes string varargs.
|
|
56
56
|
*
|
|
57
57
|
* @param {...RunBinArgs} args
|
|
58
58
|
* @returns {*} {execa.ExecaChildProcess<string>}
|
|
59
59
|
* @memberof RunBin
|
|
60
60
|
*/
|
|
61
|
-
(...args:
|
|
61
|
+
(...args: [...binArgs: string[]]): execa.ExecaChildProcess<string>;
|
|
62
|
+
/**
|
|
63
|
+
* A runBin implementation that takes an execa.Options<string> object.
|
|
64
|
+
*
|
|
65
|
+
* @param {...RunBinArgs} args
|
|
66
|
+
* @returns {*} {execa.ExecaChildProcess<string>}
|
|
67
|
+
* @memberof RunBin
|
|
68
|
+
*/
|
|
69
|
+
(...args: [execaOptions: execa.Options<string>]): execa.ExecaChildProcess<string>;
|
|
70
|
+
/**
|
|
71
|
+
* A runBin implementation that takes string or an execa.Options<string> object varargs.
|
|
72
|
+
*
|
|
73
|
+
* @param {...RunBinArgs} args
|
|
74
|
+
* @returns {*} {execa.ExecaChildProcess<string>}
|
|
75
|
+
* @memberof RunBin
|
|
76
|
+
*/
|
|
77
|
+
(...args: [...binArgs: string[], execaOptions: execa.Options<string>]): execa.ExecaChildProcess<string>;
|
|
62
78
|
}
|
|
63
79
|
interface CreateBinTesterResult<TProject extends BinTesterProject> {
|
|
64
80
|
/**
|
|
@@ -78,7 +94,6 @@ interface CreateBinTesterResult<TProject extends BinTesterProject> {
|
|
|
78
94
|
*/
|
|
79
95
|
teardownProject: () => void;
|
|
80
96
|
}
|
|
81
|
-
declare type RunBinArgs = [...binArgs: string[], execaOptions: execa.Options<string>];
|
|
82
97
|
/**
|
|
83
98
|
* Creates the bin tester API functions to use within tests.
|
|
84
99
|
*
|