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: testdata/baselines/reference/compiler/superCallInJSWithWrongBaseTypeArgumentCount1(strict=false).errors.txt
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
error TS5055: Cannot write file 'b.js' because it would overwrite input file.
2
2
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
3
-
b.js(3,25): error TS8010: Type annotations can only be used in TypeScript files.
4
3
b.js(9,25): error TS8010: Type annotations can only be used in TypeScript files.
5
4
b.js(15,25): error TS8010: Type annotations can only be used in TypeScript files.
6
5
@@ -10,12 +9,10 @@ b.js(15,25): error TS8010: Type annotations can only be used in TypeScript files
10
9
==== a.ts (0 errors) ====
11
10
export class A<T> {}
12
11
13
-
==== b.js (3 errors) ====
12
+
==== b.js (2 errors) ====
14
13
import { A } from './a.js';
15
14
16
15
export class B1 extends A {
17
-
~
18
-
!!! error TS8010: Type annotations can only be used in TypeScript files.
Copy file name to clipboardExpand all lines: testdata/baselines/reference/compiler/superCallInJSWithWrongBaseTypeArgumentCount1(strict=true).errors.txt
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
error TS5055: Cannot write file 'b.js' because it would overwrite input file.
2
2
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
3
-
b.js(3,25): error TS8010: Type annotations can only be used in TypeScript files.
4
3
b.js(3,25): error TS8026: Expected A<T> type arguments; provide these with an '@extends' tag.
5
4
b.js(9,25): error TS8010: Type annotations can only be used in TypeScript files.
6
5
b.js(15,25): error TS8010: Type annotations can only be used in TypeScript files.
@@ -12,13 +11,11 @@ b.js(15,25): error TS8026: Expected A<T> type arguments; provide these with an '
12
11
==== a.ts (0 errors) ====
13
12
export class A<T> {}
14
13
15
-
==== b.js (5 errors) ====
14
+
==== b.js (4 errors) ====
16
15
import { A } from './a.js';
17
16
18
17
export class B1 extends A {
19
18
~
20
-
!!! error TS8010: Type annotations can only be used in TypeScript files.
21
-
~
22
19
!!! error TS8026: Expected A<T> type arguments; provide these with an '@extends' tag.
Copy file name to clipboardExpand all lines: testdata/baselines/reference/compiler/superCallInJSWithWrongBaseTypeArgumentCount2(strict=false).errors.txt
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
error TS5055: Cannot write file 'b.js' because it would overwrite input file.
2
2
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
3
-
b.js(4,25): error TS8010: Type annotations can only be used in TypeScript files.
4
3
b.js(11,25): error TS8010: Type annotations can only be used in TypeScript files.
5
4
b.js(18,25): error TS8010: Type annotations can only be used in TypeScript files.
6
5
@@ -10,13 +9,11 @@ b.js(18,25): error TS8010: Type annotations can only be used in TypeScript files
10
9
==== a.ts (0 errors) ====
11
10
export class A<T> {}
12
11
13
-
==== b.js (3 errors) ====
12
+
==== b.js (2 errors) ====
14
13
import { A } from './a.js';
15
14
16
15
/** @extends {A} */
17
16
export class B1 extends A {
18
-
~
19
-
!!! error TS8010: Type annotations can only be used in TypeScript files.
Copy file name to clipboardExpand all lines: testdata/baselines/reference/compiler/superCallInJSWithWrongBaseTypeArgumentCount2(strict=true).errors.txt
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
error TS5055: Cannot write file 'b.js' because it would overwrite input file.
2
2
Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.
3
-
b.js(4,25): error TS8010: Type annotations can only be used in TypeScript files.
4
3
b.js(4,25): error TS8026: Expected A<T> type arguments; provide these with an '@extends' tag.
5
4
b.js(11,25): error TS8010: Type annotations can only be used in TypeScript files.
6
5
b.js(18,25): error TS8010: Type annotations can only be used in TypeScript files.
@@ -12,14 +11,12 @@ b.js(18,25): error TS8026: Expected A<T> type arguments; provide these with an '
12
11
==== a.ts (0 errors) ====
13
12
export class A<T> {}
14
13
15
-
==== b.js (5 errors) ====
14
+
==== b.js (4 errors) ====
16
15
import { A } from './a.js';
17
16
18
17
/** @extends {A} */
19
18
export class B1 extends A {
20
19
~
21
-
!!! error TS8010: Type annotations can only be used in TypeScript files.
22
-
~
23
20
!!! error TS8026: Expected A<T> type arguments; provide these with an '@extends' tag.
Copy file name to clipboardExpand all lines: testdata/baselines/reference/submodule/compiler/checkIndexConstraintOfJavascriptClassExpression.errors.txt
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,11 @@
1
1
error TS5102: Option 'outFile' has been removed. Please remove it from your configuration.
2
2
weird.js(1,1): error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'?
3
3
weird.js(1,23): error TS7006: Parameter 'BaseClass' implicitly has an 'any' type.
4
-
weird.js(4,25): error TS8010: Type annotations can only be used in TypeScript files.
5
4
weird.js(9,17): error TS7006: Parameter 'error' implicitly has an 'any' type.
6
5
7
6
8
7
!!! error TS5102: Option 'outFile' has been removed. Please remove it from your configuration.
9
-
==== weird.js (4 errors) ====
8
+
==== weird.js (3 errors) ====
10
9
someFunction(function(BaseClass) {
11
10
~~~~~~~~~~~~
12
11
!!! error TS2552: Cannot find name 'someFunction'. Did you mean 'Function'?
@@ -16,8 +15,6 @@ weird.js(9,17): error TS7006: Parameter 'error' implicitly has an 'any' type.
16
15
'use strict';
17
16
const DEFAULT_MESSAGE = "nop!";
18
17
class Hello extends BaseClass {
19
-
~~~~~~~~~
20
-
!!! error TS8010: Type annotations can only be used in TypeScript files.
0 commit comments