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
Copy file name to clipboardExpand all lines: __tests__/__snapshots__/dist.typescript.ts.snap
+39
Original file line number
Diff line number
Diff line change
@@ -236,3 +236,42 @@ exports[`Typescript 3.9 detects errors 13`] = `"141:34 - Argument of type '1' is
236
236
exports[`Typescript 3.9 detects errors 14`] =`"142:35 - Type '1' is not assignable to type 'Width<0 | (string &{})>'."`;
237
237
238
238
exports[`Typescript 3.9 detects errors 15`] =`"146:38 - Namespace '\\"index\\"' has no exported member 'DataType'."`;
239
+
240
+
exports[`Typescript 4.0 detects errors 1`] =`
241
+
"45:2 - Type '{unknownProperty: number; }' is not assignable to type 'Properties<0 | (string &{}), string &{}>'.
242
+
Object literal may only specify known properties, and 'unknownProperty' does not exist in type 'Properties<0 | (string &{}), string &{}>'."
243
+
`;
244
+
245
+
exports[`Typescript 4.0 detects errors 2`] =`"49:11 - Type 'number' is not assignable to type 'string'."`;
246
+
247
+
exports[`Typescript 4.0 detects errors 3`] =`"50:10 - Type 'number' is not assignable to type 'string'."`;
248
+
249
+
exports[`Typescript 4.0 detects errors 4`] =`
250
+
"55:6 - Type '{}' is not assignable to type 'string &{}'.
251
+
Type '{}' is not assignable to type 'string'."
252
+
`;
253
+
254
+
exports[`Typescript 4.0 detects errors 5`] =`
255
+
"60:10 - Type '\\"auto\\" | (string &{})' is not assignable to type '\\"auto\\"'.
256
+
Type 'string &{}' is not assignable to type '\\"auto\\"'."
257
+
`;
258
+
259
+
exports[`Typescript 4.0 detects errors 6`] =`"67:6 - Type '1' is not assignable to type 'string | 0'."`;
260
+
261
+
exports[`Typescript 4.0 detects errors 7`] =`"79:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`;
262
+
263
+
exports[`Typescript 4.0 detects errors 8`] =`"93:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`;
264
+
265
+
exports[`Typescript 4.0 detects errors 9`] =`"103:14 - Argument of type '1' is not assignable to parameter of type 'string | 0 | (string | 0)[]'."`;
266
+
267
+
exports[`Typescript 4.0 detects errors 10`] =`"104:15 - Type '1' is not assignable to type 'string | 0'."`;
268
+
269
+
exports[`Typescript 4.0 detects errors 11`] =`"117:23 - This condition will always return 'false' since the types 'string | 0 | (string | 0)[]' and '1' have no overlap."`;
270
+
271
+
exports[`Typescript 4.0 detects errors 12`] =`"131:25 - This condition will always return 'false' since the types 'string | 0' and '1' have no overlap."`;
272
+
273
+
exports[`Typescript 4.0 detects errors 13`] =`"141:34 - Argument of type '1' is not assignable to parameter of type '0 | \\"auto\\" | \\"inherit\\" | (string &{}) | \\"-moz-initial\\" | \\"initial\\" | \\"revert\\" | \\"unset\\" | \\"-moz-max-content\\" | \\"-moz-min-content\\" | \\"max-content\\" | \\"min-content\\" | \\"-webkit-max-content\\" | \\"intrinsic\\" | \\"min-intrinsic\\" | [...]'."`;
274
+
275
+
exports[`Typescript 4.0 detects errors 14`] =`"142:35 - Type '1' is not assignable to type 'Width<0 | (string &{})>'."`;
276
+
277
+
exports[`Typescript 4.0 detects errors 15`] =`"146:38 - Namespace '\\"index\\"' has no exported member 'DataType'."`;
0 commit comments