clientnode 3.0.850 → 3.0.854

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/testHelper.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="jest" />
2
- import { AnyFunction, FirstParameter, FunctionTestTuple, FunctionTestPromiseTuple, FunctionTestPromiseRejectionTuple, GenericFunction, TestSymbol, ThenParameter } from './type';
2
+ import { AnyFunction, FirstParameter, FunctionTestTuple, FunctionTestPromiseTuple, FunctionTestPromiseRejectionTuple, TestSymbol, ThenParameter, UnknownFunction } from './type';
3
3
  export declare const DefinedSymbol: unique symbol;
4
4
  export declare const ThrowSymbol: unique symbol;
5
5
  export declare const UndefinedSymbol: unique symbol;
@@ -24,7 +24,7 @@ export declare const testExpectedType: <Type = unknown>(givenResult: Type | jest
24
24
  *
25
25
  * @returns Nothing.
26
26
  */
27
- export declare const testEach: <FunctionType extends AnyFunction = GenericFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: [ReturnType<FunctionType>, ...Parameters<FunctionType>][]) => void;
27
+ export declare const testEach: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: [ReturnType<FunctionType>, ...Parameters<FunctionType>][]) => void;
28
28
  /**
29
29
  * Tests each given test set (expected value follows by various list of
30
30
  * function parameters). It respects function signature to raise compile time
@@ -36,7 +36,7 @@ export declare const testEach: <FunctionType extends AnyFunction = GenericFuncti
36
36
  *
37
37
  * @returns Nothing.
38
38
  */
39
- export declare const testEachPromise: <FunctionType extends AnyFunction = GenericFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: [ThenParameter<ReturnType<FunctionType>>, ...Parameters<FunctionType>][]) => void;
39
+ export declare const testEachPromise: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: [ThenParameter<ReturnType<FunctionType>>, ...Parameters<FunctionType>][]) => void;
40
40
  /**
41
41
  * Tests each given test set (expected value follows by various list of
42
42
  * function parameters). It respects function signature to raise compile time
@@ -48,7 +48,7 @@ export declare const testEachPromise: <FunctionType extends AnyFunction = Generi
48
48
  *
49
49
  * @returns Nothing.
50
50
  */
51
- export declare const testEachPromiseRejection: <FunctionType extends AnyFunction = GenericFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: [Error, ...Parameters<FunctionType>][]) => void;
51
+ export declare const testEachPromiseRejection: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, ...functionTestTuple: [Error, ...Parameters<FunctionType>][]) => void;
52
52
  /**
53
53
  * Tests each given single parameter against same given expected value. It
54
54
  * respects function signature to raise compile time errors if given test set
@@ -60,7 +60,7 @@ export declare const testEachPromiseRejection: <FunctionType extends AnyFunction
60
60
  *
61
61
  * @returns Nothing.
62
62
  */
63
- export declare const testEachSingleParameterAgainstSameExpectation: <FunctionType extends AnyFunction = GenericFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ReturnType<FunctionType>, ...parameters: FirstParameter<FunctionType>[]) => void;
63
+ export declare const testEachSingleParameterAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ReturnType<FunctionType>, ...parameters: FirstParameter<FunctionType>[]) => void;
64
64
  /**
65
65
  * Tests each given single parameter against same given expected value. It
66
66
  * respects function signature to raise compile time errors if given test set
@@ -72,7 +72,7 @@ export declare const testEachSingleParameterAgainstSameExpectation: <FunctionTyp
72
72
  *
73
73
  * @returns Nothing.
74
74
  */
75
- export declare const testEachSingleParameterAgainstSamePromisedExpectation: <FunctionType extends AnyFunction = GenericFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: FirstParameter<FunctionType>[]) => void;
75
+ export declare const testEachSingleParameterAgainstSamePromisedExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...parameters: FirstParameter<FunctionType>[]) => void;
76
76
  /**
77
77
  * Tests each given single parameter against same given expected value. It
78
78
  * respects function signature to raise compile time errors if given test set
@@ -84,7 +84,7 @@ export declare const testEachSingleParameterAgainstSamePromisedExpectation: <Fun
84
84
  *
85
85
  * @returns Nothing.
86
86
  */
87
- export declare const testEachSingleParameterAgainstSameRejectedExpectation: <FunctionType extends AnyFunction = GenericFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: FirstParameter<FunctionType>[]) => void;
87
+ export declare const testEachSingleParameterAgainstSameRejectedExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...parameters: FirstParameter<FunctionType>[]) => void;
88
88
  /**
89
89
  * Tests each given test set (various list of function parameters) against same
90
90
  * given expected value. It respects function signature to raise compile time
@@ -97,7 +97,7 @@ export declare const testEachSingleParameterAgainstSameRejectedExpectation: <Fun
97
97
  *
98
98
  * @returns Nothing.
99
99
  */
100
- export declare const testEachAgainstSameExpectation: <FunctionType extends AnyFunction = GenericFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ReturnType<FunctionType>, ...functionParameters: Parameters<FunctionType>[]) => void;
100
+ export declare const testEachAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ReturnType<FunctionType>, ...functionParameters: Parameters<FunctionType>[]) => void;
101
101
  /**
102
102
  * Tests each given test set (various list of function parameters) against same
103
103
  * given expected value. It respects function signature to raise compile time
@@ -110,7 +110,7 @@ export declare const testEachAgainstSameExpectation: <FunctionType extends AnyFu
110
110
  *
111
111
  * @returns Nothing.
112
112
  */
113
- export declare const testEachPromiseAgainstSameExpectation: <FunctionType extends AnyFunction = GenericFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Parameters<FunctionType>[]) => void;
113
+ export declare const testEachPromiseAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: TestSymbol | ThenParameter<ReturnType<FunctionType>>, ...functionParameters: Parameters<FunctionType>[]) => void;
114
114
  /**
115
115
  * Tests each given test set (various list of function parameters) against same
116
116
  * given expected value. It respects function signature to raise compile time
@@ -123,5 +123,5 @@ export declare const testEachPromiseAgainstSameExpectation: <FunctionType extend
123
123
  *
124
124
  * @returns Nothing.
125
125
  */
126
- export declare const testEachPromiseRejectionAgainstSameExpectation: <FunctionType extends AnyFunction = GenericFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Parameters<FunctionType>[]) => void;
126
+ export declare const testEachPromiseRejectionAgainstSameExpectation: <FunctionType extends AnyFunction = UnknownFunction>(functionName: string, callback: FunctionType, expected: Error | TestSymbol, ...functionParameters: Parameters<FunctionType>[]) => void;
127
127
  export default testEach;