@@ -3,22 +3,22 @@ index.js(5,12): error TS8010: Type annotations can only be used in TypeScript fi
3
3
index.js(8,16): error TS8004: Type parameter declarations can only be used in TypeScript files.
4
4
index.js(8,29): error TS8011: Type arguments can only be used in TypeScript files.
5
5
index.js(9,12): error TS8010: Type annotations can only be used in TypeScript files.
6
- index.js(13,11 ): error TS8010: Type annotations can only be used in TypeScript files.
7
- index.js(19,11 ): error TS8010: Type annotations can only be used in TypeScript files.
8
- index.js(23,11 ): error TS8010: Type annotations can only be used in TypeScript files.
9
- index.js(27,11 ): error TS8010: Type annotations can only be used in TypeScript files.
10
- index.js(28,11 ): error TS8010: Type annotations can only be used in TypeScript files.
11
- index.js(32,11 ): error TS8010: Type annotations can only be used in TypeScript files.
12
- index.js(39,11 ): error TS8010: Type annotations can only be used in TypeScript files.
13
- index.js(43,11 ): error TS8010: Type annotations can only be used in TypeScript files.
14
- index.js(47,11 ): error TS8010: Type annotations can only be used in TypeScript files.
15
- index.js(48,11 ): error TS8010: Type annotations can only be used in TypeScript files.
16
- index.js(52,11 ): error TS8010: Type annotations can only be used in TypeScript files.
17
- index.js(53,11 ): error TS8010: Type annotations can only be used in TypeScript files.
18
- index.js(59,11 ): error TS8010: Type annotations can only be used in TypeScript files.
19
- index.js(63,11 ): error TS8010: Type annotations can only be used in TypeScript files.
20
- index.js(67,11 ): error TS8010: Type annotations can only be used in TypeScript files.
21
- index.js(68,11 ): error TS8010: Type annotations can only be used in TypeScript files.
6
+ index.js(13,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
7
+ index.js(19,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
8
+ index.js(23,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
9
+ index.js(27,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
10
+ index.js(28,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
11
+ index.js(32,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
12
+ index.js(39,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
13
+ index.js(43,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
14
+ index.js(47,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
15
+ index.js(48,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
16
+ index.js(52,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
17
+ index.js(53,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
18
+ index.js(59,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
19
+ index.js(63,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
20
+ index.js(67,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
21
+ index.js(68,5 ): error TS8017: Signature declarations can only be used in TypeScript files.
22
22
23
23
24
24
==== index.js (21 errors) ====
@@ -45,92 +45,92 @@ index.js(68,11): error TS8010: Type annotations can only be used in TypeScript f
45
45
46
46
export class O {
47
47
[idx: string]: string;
48
- ~~~~~~
49
- !!! error TS8010: Type annotations can only be used in TypeScript files.
48
+ ~~~~~~~~~~~~~~~~ ~~~~~~
49
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
50
50
}
51
51
52
52
export class P extends O {}
53
53
54
54
export class Q extends O {
55
55
[idx: string]: "ok";
56
- ~~~~~~
57
- !!! error TS8010: Type annotations can only be used in TypeScript files.
56
+ ~~~~~~~~~~~~~~ ~~~~~~
57
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
58
58
}
59
59
60
60
export class R extends O {
61
61
[idx: number]: "ok";
62
- ~~~~~~
63
- !!! error TS8010: Type annotations can only be used in TypeScript files.
62
+ ~~~~~~~~~~~~~~ ~~~~~~
63
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
64
64
}
65
65
66
66
export class S extends O {
67
67
[idx: string]: "ok";
68
- ~~~~~~
69
- !!! error TS8010: Type annotations can only be used in TypeScript files.
68
+ ~~~~~~~~~~~~~~ ~~~~~~
69
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
70
70
[idx: number]: never;
71
- ~~~~~~
72
- !!! error TS8010: Type annotations can only be used in TypeScript files.
71
+ ~~~~~~~~~~~~~~~ ~~~~~~
72
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
73
73
}
74
74
75
75
export class T {
76
76
[idx: number]: string;
77
- ~~~~~~
78
- !!! error TS8010: Type annotations can only be used in TypeScript files.
77
+ ~~~~~~~~~~~~~~~~ ~~~~~~
78
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
79
79
}
80
80
81
81
export class U extends T {}
82
82
83
83
84
84
export class V extends T {
85
85
[idx: string]: string;
86
- ~~~~~~
87
- !!! error TS8010: Type annotations can only be used in TypeScript files.
86
+ ~~~~~~~~~~~~~~~~ ~~~~~~
87
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
88
88
}
89
89
90
90
export class W extends T {
91
91
[idx: number]: "ok";
92
- ~~~~~~
93
- !!! error TS8010: Type annotations can only be used in TypeScript files.
92
+ ~~~~~~~~~~~~~~ ~~~~~~
93
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
94
94
}
95
95
96
96
export class X extends T {
97
97
[idx: string]: string;
98
- ~~~~~~
99
- !!! error TS8010: Type annotations can only be used in TypeScript files.
98
+ ~~~~~~~~~~~~~~~~ ~~~~~~
99
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
100
100
[idx: number]: "ok";
101
- ~~~~~~
102
- !!! error TS8010: Type annotations can only be used in TypeScript files.
101
+ ~~~~~~~~~~~~~~ ~~~~~~
102
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
103
103
}
104
104
105
105
export class Y {
106
106
[idx: string]: {x: number};
107
- ~~~~~~
108
- !!! error TS8010: Type annotations can only be used in TypeScript files.
107
+ ~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
108
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
109
109
[idx: number]: {x: number, y: number};
110
- ~~~~~~
111
- !!! error TS8010: Type annotations can only be used in TypeScript files.
110
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
111
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
112
112
}
113
113
114
114
export class Z extends Y {}
115
115
116
116
export class AA extends Y {
117
117
[idx: string]: {x: number, y: number};
118
- ~~~~~~
119
- !!! error TS8010: Type annotations can only be used in TypeScript files.
118
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
119
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
120
120
}
121
121
122
122
export class BB extends Y {
123
123
[idx: number]: {x: 0, y: 0};
124
- ~~~~~~
125
- !!! error TS8010: Type annotations can only be used in TypeScript files.
124
+ ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
125
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
126
126
}
127
127
128
128
export class CC extends Y {
129
129
[idx: string]: {x: number, y: number};
130
- ~~~~~~
131
- !!! error TS8010: Type annotations can only be used in TypeScript files.
130
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
131
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
132
132
[idx: number]: {x: 0, y: 0};
133
- ~~~~~~
134
- !!! error TS8010: Type annotations can only be used in TypeScript files.
133
+ ~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
134
+ !!! error TS8017: Signature declarations can only be used in TypeScript files.
135
135
}
136
136
0 commit comments