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
tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(32,5): error TS2739: Type '(number[] | string[])[]' is missing the following properties from type 'tup': 0, 1
9
9
tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(33,5): error TS2739: Type 'number[]' is missing the following properties from type '[number, number, number]': 0, 1, 2
10
10
tests/cases/conformance/expressions/arrayLiterals/arrayLiterals3.ts(34,5): error TS2322: Type '(string | number)[]' is not assignable to type 'myArray'.
11
-
The types of 'pop()' are incompatible between these types.
11
+
The types returned by 'pop()' are incompatible between these types.
12
12
Type 'string | number' is not assignable to type 'Number'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/assignFromBooleanInterface2.errors.txt
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
tests/cases/conformance/types/primitives/boolean/assignFromBooleanInterface2.ts(14,1): error TS2322: Type 'NotBoolean' is not assignable to type 'Boolean'.
2
-
The types of 'valueOf()' are incompatible between these types.
2
+
The types returned by 'valueOf()' are incompatible between these types.
3
3
Type 'Object' is not assignable to type 'boolean'.
4
4
tests/cases/conformance/types/primitives/boolean/assignFromBooleanInterface2.ts(19,1): error TS2322: Type 'Boolean' is not assignable to type 'boolean'.
5
5
'boolean' is a primitive, but 'Boolean' is a wrapper object. Prefer using 'boolean' when possible.
tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(9,23): error TS1055: Type 'PromiseLike' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.
7
7
tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(10,23): error TS1055: Type 'typeof Thenable' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.
8
8
Construct signature return types 'Thenable' and 'PromiseLike<T>' are incompatible.
9
-
The types of 'then(...)' are incompatible between these types.
9
+
The types returned by 'then(...)' are incompatible between these types.
10
10
Type 'void' is not assignable to type 'PromiseLike<TResult1 | TResult2>'.
11
11
tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(17,16): error TS1058: The return type of an async function must either be a valid promise or must not contain a callable 'then' member.
12
12
tests/cases/conformance/async/es5/functionDeclarations/asyncFunctionDeclaration15_es5.ts(23,25): error TS1320: Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member.
!!! error TS1055: Type 'typeof Thenable' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.
40
40
!!! error TS1055: Construct signature return types 'Thenable' and 'PromiseLike<T>' are incompatible.
41
-
!!! error TS1055: The types of 'then(...)' are incompatible between these types.
41
+
!!! error TS1055: The types returned by 'then(...)' are incompatible between these types.
42
42
!!! error TS1055: Type 'void' is not assignable to type 'PromiseLike<TResult1 | TResult2>'.
43
43
async function fn7() { return; } // valid: Promise<void>
44
44
async function fn8() { return 1; } // valid: Promise<number>
!!! error TS2430: The types of 'toSeq()' are incompatible between these types.
380
+
!!! error TS2430: The types returned by 'toSeq()' are incompatible between these types.
381
381
!!! error TS2430: Type 'Keyed<K, V>' is not assignable to type 'this'.
382
382
!!! error TS2430: 'Keyed<K, V>' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Keyed<K, V>'.
!!! error TS2430: The types of 'toSeq()' are incompatible between these types.
403
+
!!! error TS2430: The types returned by 'toSeq()' are incompatible between these types.
404
404
!!! error TS2430: Type 'Indexed<T>' is not assignable to type 'this'.
405
405
!!! error TS2430: 'Indexed<T>' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Indexed<T>'.
!!! error TS2430: The types of 'toSeq()' are incompatible between these types.
440
+
!!! error TS2430: The types returned by 'toSeq()' are incompatible between these types.
441
441
!!! error TS2430: Type 'Set<T>' is not assignable to type 'this'.
442
442
!!! error TS2430: 'Set<T>' is assignable to the constraint of type 'this', but 'this' could be instantiated with a different subtype of constraint 'Set<T>'.
0 commit comments