@@ -13,6 +13,82 @@ Message: All exports in the declaration are only used as types. Use `export type
1313 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1414-- -
1515
16+ [TestConsistentTypeExportsRule / invalid - 2 - 1 ]
17+ Diagnostic 1 : singleExportIsType (1 :1 - 1 :58 )
18+ Message : Type export Type1 is not a value and should be exported using `export type ` .
19+ 1 | export { Type1 , value1 } from './consistent-type-exports';
20+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21+ ---
22+
23+ [TestConsistentTypeExportsRule/invalid-3 - 1]
24+ Diagnostic 1: singleExportIsType (2:1 - 2:66)
25+ Message: Type export Type1 is not a value and should be exported using ` export type ` .
26+ 1 |
27+ 2 | export { Type1 , value1 , value2 } from './consistent-type-exports';
28+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
29+ 3 |
30+ ---
31+
32+ [TestConsistentTypeExportsRule/invalid-4 - 1]
33+ Diagnostic 1: multipleExportsAreTypes (2:1 - 2:73)
34+ Message: Type exports Type1 and Type2 are not values and should be exported using ` export type ` .
35+ 1 |
36+ 2 | export { Type1 , value1 , Type2 , value2 } from './consistent-type-exports';
37+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38+ 3 |
39+ ---
40+
41+ [TestConsistentTypeExportsRule/invalid-5 - 1]
42+ Diagnostic 1: typeOverValue (1:1 - 1:57)
43+ Message: All exports in the declaration are only used as types. Use ` export type ` .
44+ 1 | export { Type2 as Foo } from './consistent-type-exports';
45+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46+ ---
47+
48+ [TestConsistentTypeExportsRule/invalid-6 - 1]
49+ Diagnostic 1: singleExportIsType (2:1 - 2:65)
50+ Message: Type export Type2 as Foo is not a value and should be exported using ` export type ` .
51+ 1 |
52+ 2 | export { Type2 as Foo , value1 } from './consistent-type-exports';
53+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
54+ 3 |
55+ ---
56+
57+ [TestConsistentTypeExportsRule/invalid-7 - 1]
58+ Diagnostic 1: singleExportIsType (2:1 - 6:35)
59+ Message: Type export Type2 as Foo is not a value and should be exported using ` export type ` .
60+ 1 |
61+ 2 | export {
62+ | ~~~~~~~~
63+ 3 | Type2 as Foo ,
64+ | ~~~~~~~~~~~~~~~
65+ 4 | value1 as BScope ,
66+ | ~~~~~~~~~~~~~~~~~~~
67+ 5 | value2 as CScope ,
68+ | ~~~~~~~~~~~~~~~~~~~
69+ 6 | } from './consistent-type-exports';
70+ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
71+ 7 |
72+ ---
73+
74+ [TestConsistentTypeExportsRule/invalid-8 - 1]
75+ Diagnostic 1: typeOverValue (3:1 - 3:17)
76+ Message: All exports in the declaration are only used as types. Use ` export type ` .
77+ 2 | import { Type2 } from './consistent-type-exports';
78+ 3 | export { Type2 } ;
79+ | ~~~~~~~~~~~~~~~~~
80+ 4 |
81+ ---
82+
83+ [TestConsistentTypeExportsRule/invalid-9 - 1]
84+ Diagnostic 1: singleExportIsType (3:1 - 3:25)
85+ Message: Type export Type2 is not a value and should be exported using ` export type ` .
86+ 2 | import { value2 , Type2 } from './consistent-type-exports';
87+ 3 | export { value2 , Type2 } ;
88+ | ~~~~~~~~~~~~~~~~~~~~~~~~~
89+ 4 |
90+ ---
91+
1692[TestConsistentTypeExportsRule/invalid-10 - 1]
1793Diagnostic 1: multipleExportsAreTypes (9:1 - 9:32)
1894Message: Type exports Alias and IFace are not values and should be exported using ` export type ` .
@@ -123,13 +199,6 @@ Message: All exports in the declaration are only used as types. Use `export type
123199 3 |
124200---
125201
126- [TestConsistentTypeExportsRule/invalid-2 - 1]
127- Diagnostic 1: singleExportIsType (1:1 - 1:58)
128- Message: Type export Type1 is not a value and should be exported using ` export type ` .
129- 1 | export { Type1 , value1 } from './consistent-type-exports';
130- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
131- ---
132-
133202[TestConsistentTypeExportsRule/invalid-20 - 1]
134203Diagnostic 1: typeOverValue (2:25 - 5:63)
135204Message: All exports in the declaration are only used as types. Use ` export type ` .
@@ -180,72 +249,3 @@ Message: All exports in the declaration are only used as types. Use `export type
180249 | ~~~~~~~~~~~~~~~
181250 4 |
182251---
183-
184- [TestConsistentTypeExportsRule/invalid-3 - 1]
185- Diagnostic 1: singleExportIsType (2:1 - 2:66)
186- Message: Type export Type1 is not a value and should be exported using ` export type ` .
187- 1 |
188- 2 | export { Type1 , value1 , value2 } from './consistent-type-exports';
189- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
190- 3 |
191- ---
192-
193- [TestConsistentTypeExportsRule/invalid-4 - 1]
194- Diagnostic 1: multipleExportsAreTypes (2:1 - 2:73)
195- Message: Type exports Type1 and Type2 are not values and should be exported using ` export type ` .
196- 1 |
197- 2 | export { Type1 , value1 , Type2 , value2 } from './consistent-type-exports';
198- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
199- 3 |
200- ---
201-
202- [TestConsistentTypeExportsRule/invalid-5 - 1]
203- Diagnostic 1: typeOverValue (1:1 - 1:57)
204- Message: All exports in the declaration are only used as types. Use ` export type ` .
205- 1 | export { Type2 as Foo } from './consistent-type-exports';
206- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
207- ---
208-
209- [TestConsistentTypeExportsRule/invalid-6 - 1]
210- Diagnostic 1: singleExportIsType (2:1 - 2:65)
211- Message: Type export Type2 as Foo is not a value and should be exported using ` export type ` .
212- 1 |
213- 2 | export { Type2 as Foo , value1 } from './consistent-type-exports';
214- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
215- 3 |
216- ---
217-
218- [TestConsistentTypeExportsRule/invalid-7 - 1]
219- Diagnostic 1: singleExportIsType (2:1 - 6:35)
220- Message: Type export Type2 as Foo is not a value and should be exported using ` export type ` .
221- 1 |
222- 2 | export {
223- | ~~~~~~~~
224- 3 | Type2 as Foo ,
225- | ~~~~~~~~~~~~~~~
226- 4 | value1 as BScope ,
227- | ~~~~~~~~~~~~~~~~~~~
228- 5 | value2 as CScope ,
229- | ~~~~~~~~~~~~~~~~~~~
230- 6 | } from './consistent-type-exports';
231- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
232- 7 |
233- ---
234-
235- [TestConsistentTypeExportsRule/invalid-8 - 1]
236- Diagnostic 1: typeOverValue (3:1 - 3:17)
237- Message: All exports in the declaration are only used as types. Use ` export type ` .
238- 2 | import { Type2 } from './consistent-type-exports';
239- 3 | export { Type2 } ;
240- | ~~~~~~~~~~~~~~~~~
241- 4 |
242- ---
243-
244- [TestConsistentTypeExportsRule/invalid-9 - 1]
245- Diagnostic 1: singleExportIsType (3:1 - 3:25)
246- Message: Type export Type2 is not a value and should be exported using ` export type ` .
247- 2 | import { value2 , Type2 } from './consistent-type-exports';
248- 3 | export { value2 , Type2 } ;
249- | ~~~~~~~~~~~~~~~~~~~~~~~~~
250- 4 |
251- ---
0 commit comments