2020-01-03 23:39:32 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @isolatedModules: true
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
|
|
|
////export type T1 = {};
|
|
|
|
////export const V1 = {};
|
|
|
|
////export type T2 = {};
|
|
|
|
|
|
|
|
// @Filename: /b.ts
|
|
|
|
////export type T3 = {};
|
|
|
|
////export const V2 = {};
|
|
|
|
////export type T4 = {};
|
2020-10-27 23:08:20 +01:00
|
|
|
////export type T5 = {};
|
2020-01-03 23:39:32 +01:00
|
|
|
|
|
|
|
// @Filename: /c.ts
|
2020-10-27 23:08:20 +01:00
|
|
|
////export type T6 = {};
|
|
|
|
////export type T7 = {};
|
|
|
|
|
|
|
|
// @Filename: /d.ts
|
|
|
|
/////* Test comment */
|
2020-01-03 23:39:32 +01:00
|
|
|
////export { T1, V1, T2 } from './a';
|
2020-10-27 23:08:20 +01:00
|
|
|
////export { T3, V2, T4, T5 } from './b';
|
|
|
|
////// TODO: fix messy formatting
|
|
|
|
////export {
|
|
|
|
//// T6 // need to export this
|
|
|
|
//// , T7, /* and this */ } from "./c";
|
|
|
|
|
2020-01-03 23:39:32 +01:00
|
|
|
|
2020-10-27 23:08:20 +01:00
|
|
|
goTo.file("/d.ts");
|
2020-01-03 23:39:32 +01:00
|
|
|
verify.codeFixAll({
|
|
|
|
fixAllDescription: ts.Diagnostics.Convert_all_re_exported_types_to_type_only_exports.message,
|
|
|
|
fixId: "convertToTypeOnlyExport",
|
|
|
|
newFileContent:
|
2020-10-27 23:08:20 +01:00
|
|
|
`/* Test comment */
|
|
|
|
export { V1 } from './a';
|
2020-01-03 23:39:32 +01:00
|
|
|
export type { T1, T2 } from './a';
|
|
|
|
export { V2 } from './b';
|
2020-10-27 23:08:20 +01:00
|
|
|
export type { T3, T4, T5 } from './b';
|
|
|
|
// TODO: fix messy formatting
|
|
|
|
export type {
|
|
|
|
T6 // need to export this
|
|
|
|
, T7, /* and this */ } from "./c";`
|
2020-01-03 23:39:32 +01:00
|
|
|
});
|