Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug with invalid print output when empty array is passed to t.t…
…sInterfaceDeclaration If you pass an empty array as `extends` in `t.tsInterfaceDeclaration` you'll get an invalid code printed ```ts t.tsInterfaceDeclaration( t.identifier('x'), undefined, [], t.tsInterfaceBody([]) ) ``` You will get ```ts interface A extends {} ``` Which is an invalid TS, this PR fixes that
- Loading branch information
1 parent
265424d
commit 775544e
Showing
2 changed files
with
14 additions
and
1 deletion.
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