Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ";" token to the end of TS construct & call signature declaration (…
…#10258) * Add ";" token to the end of TS construct signature declaration * Add ";" token to the end of TS call signature declaration. Update construct signature test fixtures
- Loading branch information
1 parent
4d12c89
commit 4d30379
Showing
5 changed files
with
10 additions
and
4 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
1 change: 1 addition & 0 deletions
1
packages/babel-generator/test/fixtures/typescript/interface-call-signature/input.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,3 +1,4 @@ | ||
interface I { | ||
(x: number): void; | ||
(x: string): void; | ||
} |
5 changes: 3 additions & 2 deletions
5
packages/babel-generator/test/fixtures/typescript/interface-call-signature/output.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,3 +1,4 @@ | ||
interface I { | ||
(x: number): void | ||
} | ||
(x: number): void; | ||
(x: string): void; | ||
} |
1 change: 1 addition & 0 deletions
1
packages/babel-generator/test/fixtures/typescript/interface-construct-signature/input.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,3 +1,4 @@ | ||
interface I { | ||
new (x: number): void; | ||
new (x: string): void; | ||
} |
5 changes: 3 additions & 2 deletions
5
packages/babel-generator/test/fixtures/typescript/interface-construct-signature/output.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,3 +1,4 @@ | ||
interface I { | ||
new (x: number): void | ||
} | ||
new (x: number): void; | ||
new (x: string): void; | ||
} |