tstyche 4.3.0 → 5.0.0-beta.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/README.md +2 -2
- package/build/4.x/index.d.cts +251 -0
- package/build/4.x/index.d.ts +251 -0
- package/build/index.d.cts +16 -58
- package/build/index.d.ts +16 -58
- package/build/tstyche.d.ts +227 -314
- package/build/tstyche.js +1461 -1141
- package/package.json +13 -2
package/build/index.d.ts
CHANGED
|
@@ -102,39 +102,39 @@ interface Matchers {
|
|
|
102
102
|
*/
|
|
103
103
|
toBeApplicable: (target: unknown, context: DecoratorContext) => void;
|
|
104
104
|
/**
|
|
105
|
-
* Checks if the source type is assignable
|
|
105
|
+
* Checks if the source type is assignable from the target type.
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
toBeAssignableFrom: {
|
|
108
108
|
/**
|
|
109
|
-
* Checks if the source type is assignable
|
|
109
|
+
* Checks if the source type is assignable from the target type.
|
|
110
110
|
*/
|
|
111
111
|
<Target>(): void;
|
|
112
112
|
/**
|
|
113
|
-
* Checks if the source type is assignable
|
|
113
|
+
* Checks if the source type is assignable from type of the target expression.
|
|
114
114
|
*/
|
|
115
115
|
(target: unknown): void;
|
|
116
116
|
};
|
|
117
117
|
/**
|
|
118
|
-
* Checks if the source type is assignable
|
|
118
|
+
* Checks if the source type is assignable to the target type.
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
toBeAssignableTo: {
|
|
121
121
|
/**
|
|
122
|
-
* Checks if the source type is assignable
|
|
122
|
+
* Checks if the source type is assignable to the target type.
|
|
123
123
|
*/
|
|
124
124
|
<Target>(): void;
|
|
125
125
|
/**
|
|
126
|
-
* Checks if the source type is assignable
|
|
126
|
+
* Checks if the source type is assignable to type of the target expression.
|
|
127
127
|
*/
|
|
128
128
|
(target: unknown): void;
|
|
129
129
|
};
|
|
130
130
|
/**
|
|
131
131
|
* Checks if the source type is callable with the given arguments.
|
|
132
132
|
*/
|
|
133
|
-
toBeCallableWith: (...
|
|
133
|
+
toBeCallableWith: (...args: Array<unknown>) => void;
|
|
134
134
|
/**
|
|
135
135
|
* Checks if the source type is constructable with the given arguments.
|
|
136
136
|
*/
|
|
137
|
-
toBeConstructableWith: (...
|
|
137
|
+
toBeConstructableWith: (...args: Array<unknown>) => void;
|
|
138
138
|
/**
|
|
139
139
|
* Checks if a property key exists on the source type.
|
|
140
140
|
*/
|
|
@@ -159,29 +159,15 @@ interface Expect {
|
|
|
159
159
|
/**
|
|
160
160
|
* Builds an assertion.
|
|
161
161
|
*
|
|
162
|
-
* @template Source - The type
|
|
162
|
+
* @template Source - The type which is checked.
|
|
163
163
|
*/
|
|
164
164
|
<Source>(): Modifier;
|
|
165
165
|
/**
|
|
166
166
|
* Builds an assertion.
|
|
167
167
|
*
|
|
168
|
-
* @param source - The expression
|
|
168
|
+
* @param source - The expression whose type is checked.
|
|
169
169
|
*/
|
|
170
170
|
(source: unknown): Modifier;
|
|
171
|
-
fail: {
|
|
172
|
-
/**
|
|
173
|
-
* Mark an assertion as supposed to fail.
|
|
174
|
-
*
|
|
175
|
-
* @template Source - The type against which the assertion is made.
|
|
176
|
-
*/
|
|
177
|
-
<Source>(): Modifier;
|
|
178
|
-
/**
|
|
179
|
-
* Mark an assertion as supposed to fail.
|
|
180
|
-
*
|
|
181
|
-
* @param source - The expression against which type the assertion is made.
|
|
182
|
-
*/
|
|
183
|
-
(source: unknown): Modifier;
|
|
184
|
-
};
|
|
185
171
|
/**
|
|
186
172
|
* Marks an assertion as focused.
|
|
187
173
|
*/
|
|
@@ -189,29 +175,15 @@ interface Expect {
|
|
|
189
175
|
/**
|
|
190
176
|
* Marks an assertion as focused.
|
|
191
177
|
*
|
|
192
|
-
* @template Source - The type
|
|
178
|
+
* @template Source - The type which is checked.
|
|
193
179
|
*/
|
|
194
180
|
<Source>(): Modifier;
|
|
195
181
|
/**
|
|
196
182
|
* Marks an assertion as focused.
|
|
197
183
|
*
|
|
198
|
-
* @param source - The expression
|
|
184
|
+
* @param source - The expression whose type is checked.
|
|
199
185
|
*/
|
|
200
186
|
(source: unknown): Modifier;
|
|
201
|
-
fail: {
|
|
202
|
-
/**
|
|
203
|
-
* Mark an assertion as supposed to fail.
|
|
204
|
-
*
|
|
205
|
-
* @template Source - The type against which the assertion is made.
|
|
206
|
-
*/
|
|
207
|
-
<Source>(): Modifier;
|
|
208
|
-
/**
|
|
209
|
-
* Mark an assertion as supposed to fail.
|
|
210
|
-
*
|
|
211
|
-
* @param source - The expression against which type the assertion is made.
|
|
212
|
-
*/
|
|
213
|
-
(source: unknown): Modifier;
|
|
214
|
-
};
|
|
215
187
|
};
|
|
216
188
|
/**
|
|
217
189
|
* Marks an assertion as skipped.
|
|
@@ -220,29 +192,15 @@ interface Expect {
|
|
|
220
192
|
/**
|
|
221
193
|
* Marks an assertion as skipped.
|
|
222
194
|
*
|
|
223
|
-
* @template Source - The type
|
|
195
|
+
* @template Source - The type which is checked.
|
|
224
196
|
*/
|
|
225
197
|
<Source>(): Modifier;
|
|
226
198
|
/**
|
|
227
199
|
* Marks an assertion as skipped.
|
|
228
200
|
*
|
|
229
|
-
* @param source - The expression
|
|
201
|
+
* @param source - The expression whose type is checked.
|
|
230
202
|
*/
|
|
231
203
|
(source: unknown): Modifier;
|
|
232
|
-
fail: {
|
|
233
|
-
/**
|
|
234
|
-
* Marks an assertion as supposed to fail.
|
|
235
|
-
*
|
|
236
|
-
* @template Source - The type against which the assertion is made.
|
|
237
|
-
*/
|
|
238
|
-
<Source>(): Modifier;
|
|
239
|
-
/**
|
|
240
|
-
* Marks an assertion as supposed to fail.
|
|
241
|
-
*
|
|
242
|
-
* @param source - The expression against which type the assertion is made.
|
|
243
|
-
*/
|
|
244
|
-
(source: unknown): Modifier;
|
|
245
|
-
};
|
|
246
204
|
};
|
|
247
205
|
}
|
|
248
206
|
/**
|