Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #248 from timocov/issue185
- Loading branch information
Showing
10 changed files
with
129 additions
and
43 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
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
3 changes: 3 additions & 0 deletions
3
tests/e2e/test-cases/export-default-unnamed-statement/another-class.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,3 @@ | ||
export default class { | ||
second: number = 1; | ||
} |
1 change: 1 addition & 0 deletions
1
tests/e2e/test-cases/export-default-unnamed-statement/another-func.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 default function(second: number) {} |
3 changes: 3 additions & 0 deletions
3
tests/e2e/test-cases/export-default-unnamed-statement/class.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,3 @@ | ||
export default class { | ||
first: number = 1; | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/e2e/test-cases/export-default-unnamed-statement/config.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,5 @@ | ||
import { TestCaseConfig } from '../../test-cases/test-case-config'; | ||
|
||
const config: TestCaseConfig = {}; | ||
|
||
export = config; |
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 default function(first: number) {} |
9 changes: 9 additions & 0 deletions
9
tests/e2e/test-cases/export-default-unnamed-statement/input.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,9 @@ | ||
export { default as myFunc1 } from './func'; | ||
export { default as myFunc2 } from './func'; | ||
export { default as myFunc3 } from './another-func'; | ||
export { default as myFunc4 } from './another-func'; | ||
|
||
export { default as myClass1 } from './class'; | ||
export { default as myClass2 } from './class'; | ||
export { default as myClass3 } from './another-class'; | ||
export { default as myClass4 } from './another-class'; |
21 changes: 21 additions & 0 deletions
21
tests/e2e/test-cases/export-default-unnamed-statement/output.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,21 @@ | ||
declare function __DTS_BUNDLE_GENERATOR__GENERATED_NAME$1(first: number): void; | ||
declare function __DTS_BUNDLE_GENERATOR__GENERATED_NAME$2(second: number): void; | ||
declare class __DTS_BUNDLE_GENERATOR__GENERATED_NAME$3 { | ||
first: number; | ||
} | ||
declare class __DTS_BUNDLE_GENERATOR__GENERATED_NAME$4 { | ||
second: number; | ||
} | ||
|
||
export { | ||
__DTS_BUNDLE_GENERATOR__GENERATED_NAME$1 as myFunc1, | ||
__DTS_BUNDLE_GENERATOR__GENERATED_NAME$1 as myFunc2, | ||
__DTS_BUNDLE_GENERATOR__GENERATED_NAME$2 as myFunc3, | ||
__DTS_BUNDLE_GENERATOR__GENERATED_NAME$2 as myFunc4, | ||
__DTS_BUNDLE_GENERATOR__GENERATED_NAME$3 as myClass1, | ||
__DTS_BUNDLE_GENERATOR__GENERATED_NAME$3 as myClass2, | ||
__DTS_BUNDLE_GENERATOR__GENERATED_NAME$4 as myClass3, | ||
__DTS_BUNDLE_GENERATOR__GENERATED_NAME$4 as myClass4, | ||
}; | ||
|
||
export {}; |