clientnode 4.0.1499 → 4.0.1501

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/scope.d.ts CHANGED
@@ -23,7 +23,7 @@ export declare const UTILITY_SCOPE: {
23
23
  readonly string: typeof string;
24
24
  readonly utility: typeof utility;
25
25
  };
26
- export declare const UTILITY_SCOPE_NAMES: readonly ["array", "datetime", "filesystem", "functions", "indicators", "logger", "module", "number", "object", "string", "utility"];
26
+ export declare const UTILITY_SCOPE_NAMES: readonly ['array', 'datetime', 'filesystem', 'functions', 'indicators', 'logger', 'module', 'number', 'object', 'string', 'utility'];
27
27
  export declare const UTILITY_SCOPE_VALUES: readonly [typeof array, typeof datetime, typeof filesystem, typeof functions, typeof indicators, typeof logger, typeof module, typeof number, typeof object, typeof string, typeof utility];
28
28
  /**
29
29
  * Overwrites all inherited variables from parent scope with "undefined".
package/dist/string.d.ts CHANGED
@@ -5,7 +5,7 @@ export declare const POLYFILL_TEMPLATE_STRINGS: {
5
5
  };
6
6
  export declare const ALLOWED_VARIABLE_SYMBOLS = "0-9a-zA-Z_$";
7
7
  export declare const ALLOWED_STARTING_VARIABLE_SYMBOLS = "a-zA-Z_$";
8
- export declare const FIX_ENCODING_ERROR_MAPPING: readonly [readonly ["Ã\\x84", "Ä"], readonly ["Ã\\x96", "Ö"], readonly ["Ã\\x9c", "Ü"], readonly ["ä", "ä"], readonly ["ö", "ö"], readonly ["ü", "ü"], readonly ["\\x96", "-"], readonly ["é", "é"], readonly ["è", "e"], readonly ["ô", "o"], readonly ["à ", "á"], readonly ["ø", "ø"], readonly ["Ã\\x9f", "ß"], readonly ["Ã", "ß"]];
8
+ export declare const FIX_ENCODING_ERROR_MAPPING: readonly [readonly ['Ã\\x84', 'Ä'], readonly ['Ã\\x96', 'Ö'], readonly ['Ã\\x9c', 'Ü'], readonly ['ä', 'ä'], readonly ['ö', 'ö'], readonly ['ü', 'ü'], readonly ['\\x96', '-'], readonly ['é', 'é'], readonly ['è', 'e'], readonly ['ô', 'o'], readonly ['à ', 'á'], readonly ['ø', 'ø'], readonly ['Ã\\x9f', 'ß'], readonly ['Ã', 'ß']];
9
9
  export declare const AsyncFunction: any;
10
10
  /**
11
11
  * Translates a given string into the regular expression validated
@@ -11,49 +11,23 @@ export declare const TEST_UNDEFINED_SYMBOL: unique symbol;
11
11
  * @returns Nothing or a promise resolving to nothing.
12
12
  */
13
13
  export declare const expectExpectedType: <Type = unknown, Result extends Promise<void> | void = void>(givenResult: Matchers<Result> | Result, expected: TestSymbol | Type, wrap?: boolean) => Result;
14
- /**
15
- * Tests each given test set (expected value follows by various list of
16
- * function parameters). It respects function signature to raise compile time
17
- * errors if given test set does not match given function signature.
18
- * @param functionName - Function description to test.
19
- * @param callback - Function reference to test.
20
- * @param functionTestTuple - Additional arrays of test sets to test given
21
- * function again.
22
- */
23
- export declare const testEach: {
24
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>): void;
25
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>): void;
26
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>): void;
27
- };
28
- /**
29
- * Tests each given test set (promise resolving to expected value follows by
30
- * various list of function parameters). It respects function signature to
31
- * raise compile time errors if given test set does not match given function
32
- * signature.
33
- * @param functionName - Function description to test.
34
- * @param callback - Function reference to test.
35
- * @param functionTestTuple - Additional arrays of test sets to test given
36
- * function again.
37
- */
38
- export declare const testEachAgainstResolvedPromise: {
39
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>): void;
40
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>): void;
41
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>): void;
42
- };
43
- /**
44
- * Tests each given test set (expected value follows by various list of
45
- * function parameters). It respects function signature to raise compile time
46
- * errors if given test set does not match given function signature.
47
- * @param functionName - Function description to test.
48
- * @param callback - Function reference to test.
49
- * @param functionTestTuple - Additional arrays of test sets to test given
50
- * function again.
51
- */
52
- export declare const testEachResolvedPromise: {
53
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>): void;
54
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>): void;
55
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>): void;
56
- };
14
+ export declare function testEach<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>): void;
15
+ export declare namespace testEach {
16
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>) => void;
17
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestTuple<FunctionType>>) => void;
18
+ }
19
+ export declare function testEachAgainstResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>): void;
20
+ export declare namespace testEachAgainstResolvedPromise {
21
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>) => void;
22
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestAgainstResolvedPromiseTuple<FunctionType>>) => void;
23
+ }
24
+ export declare function testEachResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>): void;
25
+ export declare namespace testEachResolvedPromise {
26
+ var only: (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>) => void) | (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseAgainstResolvedPromiseTuple<FunctionType>>) => void);
27
+ var skip: (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>) => void) | (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseAgainstResolvedPromiseTuple<FunctionType>>) => void);
28
+ var only: (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>) => void) | (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseAgainstResolvedPromiseTuple<FunctionType>>) => void);
29
+ var skip: (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseTuple<FunctionType>>) => void) | (<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseAgainstResolvedPromiseTuple<FunctionType>>) => void);
30
+ }
57
31
  /**
58
32
  * Tests each given test set (expected value follows by various list of
59
33
  * function parameters). It respects function signature to raise compile time
@@ -64,182 +38,64 @@ export declare const testEachResolvedPromise: {
64
38
  * function again.
65
39
  */
66
40
  export declare const testEachResolvedPromiseAgainstResolvedPromise: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseAgainstResolvedPromiseTuple<FunctionType>>) => void;
67
- /**
68
- * Tests each given test set (expected value follows by various list of
69
- * function parameters). It respects function signature to raise compile time
70
- * errors if given test set does not match given function signature.
71
- * @param functionName - Function description to test.
72
- * @param callback - Function reference to test.
73
- * @param functionTestTuple - Additional arrays of test sets to test given
74
- * function again.
75
- */
76
- export declare const testEachRejectedPromise: {
77
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>): void;
78
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>): void;
79
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>): void;
80
- };
81
- /**
82
- * Tests each given test set (expected value follows by various list of
83
- * function parameters). It respects function signature to raise compile time
84
- * errors if given test set does not match given function signature.
85
- * @param functionName - Function description to test.
86
- * @param callback - Function reference to test.
87
- * @param functionTestTuple - Additional arrays of test sets to test given
88
- * function again.
89
- */
90
- export declare const testEachRejectedPromiseAgainstResolvedPromise: {
91
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>): void;
92
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>): void;
93
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>): void;
94
- };
95
- /**
96
- * Tests each given single parameter against same given expected value. It
97
- * respects function signature to raise compile time errors if given test set
98
- * does not match given function signature.
99
- * @param functionName - Function description to test.
100
- * @param callback - Function reference to test.
101
- * @param expected - Value to check each function call return value against.
102
- * @param parameters - Additional first parameters to test given function with.
103
- */
104
- export declare const testEachSingleParameterAgainstSameExpectation: {
105
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
106
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
107
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
108
- };
109
- /**
110
- * Tests each given single parameter against same given expected value. It
111
- * respects function signature to raise compile time errors if given test set
112
- * does not match given function signature.
113
- * @param functionName - Function description to test.
114
- * @param callback - Function reference to test.
115
- * @param expected - Value to check each function call return value against.
116
- * @param parameters - Additional first parameters to test given function with.
117
- */
118
- export declare const testEachResolvedPromiseWithSingleParameterAgainstSameExpectation: {
119
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
120
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
121
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
122
- };
123
- /**
124
- * Tests each given single parameter against same given promises resolving to
125
- * expected value. It respects function signature to raise compile time errors
126
- * if given test set does not match given function signature.
127
- * @param functionName - Function description to test.
128
- * @param callback - Function reference to test.
129
- * @param expected - Promise resolving to value to check each function call
130
- * return value against.
131
- * @param parameters - Additional first parameters to test given function with.
132
- */
133
- export declare const testEachResolvedPromiseWithSingleParameterAgainstSameResolvedPromise: {
134
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
135
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
136
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
137
- };
138
- /**
139
- * Tests each given single parameter against same given expected value. It
140
- * respects function signature to raise compile time errors if given test set
141
- * does not match given function signature.
142
- * @param functionName - Function description to test.
143
- * @param callback - Function reference to test.
144
- * @param expected - Value to check each function call return value against.
145
- * @param parameters - Additional first parameters to test given function with.
146
- */
147
- export declare const testEachRejectedPromiseWithSingleParameterAgainstSameExpectation: {
148
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
149
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
150
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
151
- };
152
- /**
153
- * Tests each given single parameter against same given expected value. It
154
- * respects function signature to raise compile time errors if given test set
155
- * does not match given function signature.
156
- * @param functionName - Function description to test.
157
- * @param callback - Function reference to test.
158
- * @param expected - Value to check each function call return value against.
159
- * @param parameters - Additional first parameters to test given function with.
160
- */
161
- export declare const testEachRejectedPromiseWithSingleParameterAgainstSameResolvedPromise: {
162
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>): void;
163
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>): void;
164
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>): void;
165
- };
166
- /**
167
- * Tests each given test set (various list of function parameters) against same
168
- * given expected value. It respects function signature to raise compile time
169
- * errors if given test set does not match given function signature.
170
- * @param functionName - Function description to test.
171
- * @param callback - Function reference to test.
172
- * @param expected - Value to check each function call return value against.
173
- * @param functionParameters - Additional lists of parameters to test given
174
- * function again.
175
- */
176
- export declare const testEachAgainstSameExpectation: {
177
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
178
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
179
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
180
- };
181
- /**
182
- * Tests each given test set (various list of function parameters) against same
183
- * given expected value. It respects function signature to raise compile time
184
- * errors if given test set does not match given function signature.
185
- * @param functionName - Function description to test.
186
- * @param callback - Function reference to test.
187
- * @param expected - Value to check each function call return value against.
188
- * @param functionParameters - Additional lists of parameters to test given
189
- * function again.
190
- */
191
- export declare const testEachResolvedPromiseAgainstSameExpectation: {
192
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
193
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
194
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
195
- };
196
- /**
197
- * Tests each given test set (various list of function parameters) against same
198
- * given promise resolving expected value. It respects function signature to
199
- * raise compile time errors if given test set does not match given function
200
- * signature.
201
- * @param functionName - Function description to test.
202
- * @param callback - Function reference to test.
203
- * @param expected - Promise resolving to value to check each function call
204
- * return value against.
205
- * @param functionParameters - Additional lists of parameters to test given
206
- * function again.
207
- */
208
- export declare const testEachResolvedPromiseAgainstSameResolvedPromise: {
209
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
210
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
211
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
212
- };
213
- /**
214
- * Tests each given test set (various list of function parameters) against same
215
- * given expected value. It respects function signature to raise compile time
216
- * errors if given test set does not match given function signature.
217
- * @param functionName - Function description to test.
218
- * @param callback - Function reference to test.
219
- * @param expected - Value to check each function call return value against.
220
- * @param functionParameters - Additional lists of parameters to test given
221
- * function again.
222
- */
223
- export declare const testEachRejectedPromiseAgainstSameExpectation: {
224
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
225
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
226
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
227
- };
228
- /**
229
- * Tests each given test set (various list of function parameters) against same
230
- * given promise resolving expected value. It respects function signature to
231
- * raise compile time errors if given test set does not match given function
232
- * signature.
233
- * @param functionName - Function description to test.
234
- * @param callback - Function reference to test.
235
- * @param expected - Promise resolving to value to check each function call
236
- * return value against.
237
- * @param functionParameters - Additional lists of parameters to test given
238
- * function again.
239
- */
240
- export declare const testEachRejectedPromiseAgainstSameResolvedPromise: {
241
- <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>): void;
242
- only<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>): void;
243
- skip<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>): void;
244
- };
41
+ export declare function testEachRejectedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>): void;
42
+ export declare namespace testEachRejectedPromise {
43
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>) => void;
44
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionTuple<FunctionType>>) => void;
45
+ }
46
+ export declare function testEachRejectedPromiseAgainstResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>): void;
47
+ export declare namespace testEachRejectedPromiseAgainstResolvedPromise {
48
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>) => void;
49
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: Array<FunctionTestPromiseRejectionAgainstResolvedPromiseTuple<FunctionType>>) => void;
50
+ }
51
+ export declare function testEachSingleParameterAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
52
+ export declare namespace testEachSingleParameterAgainstSameExpectation {
53
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>) => void;
54
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>) => void;
55
+ }
56
+ export declare function testEachResolvedPromiseWithSingleParameterAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
57
+ export declare namespace testEachResolvedPromiseWithSingleParameterAgainstSameExpectation {
58
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
59
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
60
+ }
61
+ export declare function testEachResolvedPromiseWithSingleParameterAgainstSameResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>): void;
62
+ export declare namespace testEachResolvedPromiseWithSingleParameterAgainstSameResolvedPromise {
63
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
64
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
65
+ }
66
+ export declare function testEachRejectedPromiseWithSingleParameterAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>): void;
67
+ export declare namespace testEachRejectedPromiseWithSingleParameterAgainstSameExpectation {
68
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>) => void;
69
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: Array<FirstParameter<FunctionType>>) => void;
70
+ }
71
+ export declare function testEachRejectedPromiseWithSingleParameterAgainstSameResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>): void;
72
+ export declare namespace testEachRejectedPromiseWithSingleParameterAgainstSameResolvedPromise {
73
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
74
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...parameters: Array<FirstParameter<FunctionType>>) => void;
75
+ }
76
+ export declare function testEachAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
77
+ export declare namespace testEachAgainstSameExpectation {
78
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>) => void;
79
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: ReturnType<FunctionType> | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>) => void;
80
+ }
81
+ export declare function testEachResolvedPromiseAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
82
+ export declare namespace testEachResolvedPromiseAgainstSameExpectation {
83
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
84
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
85
+ }
86
+ export declare function testEachResolvedPromiseAgainstSameResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>): void;
87
+ export declare namespace testEachResolvedPromiseAgainstSameResolvedPromise {
88
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
89
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<TestSymbol | ThenParameter<ReturnType<FunctionType>>>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
90
+ }
91
+ export declare function testEachRejectedPromiseAgainstSameExpectation<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>): void;
92
+ export declare namespace testEachRejectedPromiseAgainstSameExpectation {
93
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>) => void;
94
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Array<Parameters<FunctionType>>) => void;
95
+ }
96
+ export declare function testEachRejectedPromiseAgainstSameResolvedPromise<FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>): void;
97
+ export declare namespace testEachRejectedPromiseAgainstSameResolvedPromise {
98
+ var only: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
99
+ var skip: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Promise<Error | TestSymbol>, ...functionParameters: Array<Parameters<FunctionType>>) => void;
100
+ }
245
101
  export default testEach;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clientnode",
3
- "version": "4.0.1499",
3
+ "version": "4.0.1501",
4
4
  "description": "Handy utilities for any JavaScript environments.",
5
5
  "keywords": [
6
6
  "client",
@@ -102,8 +102,8 @@
102
102
  "prop-types": "^15.8.1",
103
103
  "rimraf": "^6.1.3",
104
104
  "typescript-eslint": "^8.68.0",
105
- "web-documentation": "^1.0.49",
106
- "weboptimizer": "^4.0.60",
105
+ "web-documentation": "^1.0.51",
106
+ "weboptimizer": "^4.0.66",
107
107
  "webpack-dev-server": "^6.0.0"
108
108
  },
109
109
  "peerDependencies": {
@@ -127,7 +127,7 @@
127
127
  "globals@npm:^11.1.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
128
128
  "globals@npm:^14.0.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
129
129
  "globals@npm:^9.18.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch",
130
- "weboptimizer/clientnode": "4.0.1495"
130
+ "weboptimizer/clientnode": "4.0.1499"
131
131
  },
132
132
  "engines": {
133
133
  "node": ">=26",
@@ -272,5 +272,5 @@
272
272
  }
273
273
  }
274
274
  },
275
- "packageManager": "yarn@4.14.1+sha512.64df448055b2d37ba269d7db535a469b8da93f8ef1140c25fd7a83c00a8fbaacb214ca0e02553b92a2c54cef78bb67d0b4817fab02001df0e24fac0faccc3b42"
275
+ "packageManager": "yarn@4.18.0"
276
276
  }