This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support type-only imports and exports (#224)
- Loading branch information
1 parent
656463d
commit e4fdd54
Showing
8 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import A from "./depsA"; | ||
import B from "../depsB"; | ||
import type A from "./depsA"; | ||
import type B from "../depsB"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { A, B } from "./depA"; | ||
export { C, D } from "../depB"; | ||
export type { A, B } from "./depA"; | ||
export type { C, D } from "../depB"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import A from "dep"; | ||
import type A from "dep"; |
4 changes: 2 additions & 2 deletions
4
test/fixtures/convert/imports/named_import_declaration_kind/ts.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import { A, B } from "./depA"; | ||
import { C, D } from "../depB"; | ||
import type { A, B } from "./depA"; | ||
import type { C, D } from "../depB"; |
4 changes: 2 additions & 2 deletions
4
test/fixtures/convert/imports/named_import_specifier_kind/ts.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import { A, B, C } from "./depA"; | ||
import { D, E, F } from "../depB"; | ||
import { type A, type B, C } from "./depA"; | ||
import { type D, type E, F } from "../depB"; |
2 changes: 2 additions & 0 deletions
2
test/fixtures/convert/imports/typed_and_non_typed_imports/flow.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { A } from "./depA.js"; | ||
import type { B } from "./depA.js"; |
2 changes: 2 additions & 0 deletions
2
test/fixtures/convert/imports/typed_and_non_typed_imports/ts.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
import { A } from "./depA"; | ||
import type { B } from "./depA"; |