-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: "Got unexpected undefined" error when using a re-exported type (#…
- Loading branch information
1 parent
931ecd5
commit 8823770
Showing
9 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...s/core/integration-tests/test/integration/ts-types/re-exporting-aggregating/expected.d.ts
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,4 @@ | ||
type fuga = "fuga"; | ||
export type Baz = `${fuga}`; | ||
|
||
//# sourceMappingURL=types.d.ts.map |
1 change: 1 addition & 0 deletions
1
...ges/core/integration-tests/test/integration/ts-types/re-exporting-aggregating/hoge/bar.ts
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 @@ | ||
export type bar = 'bar'; |
1 change: 1 addition & 0 deletions
1
...es/core/integration-tests/test/integration/ts-types/re-exporting-aggregating/hoge/fuga.ts
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 @@ | ||
export type fuga = "fuga"; |
2 changes: 2 additions & 0 deletions
2
...s/core/integration-tests/test/integration/ts-types/re-exporting-aggregating/hoge/index.ts
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 @@ | ||
export * from "./bar"; | ||
export * from "./fuga"; |
2 changes: 2 additions & 0 deletions
2
packages/core/integration-tests/test/integration/ts-types/re-exporting-aggregating/index.ts
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 { fuga } from './hoge'; | ||
export type Baz = `${fuga}` |
6 changes: 6 additions & 0 deletions
6
...es/core/integration-tests/test/integration/ts-types/re-exporting-aggregating/package.json
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,6 @@ | ||
{ | ||
"name": "ts-types-re-exporting-aggregating", | ||
"private": true, | ||
"main": "dist/main.js", | ||
"types": "dist/types.d.ts" | ||
} |
Empty file.
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