-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4082cb
commit 1b0c756
Showing
6 changed files
with
178 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#### Print `declare` and `export` keywords for nested namespace (#15249 by @sosukesuzuki) | ||
|
||
<!-- prettier-ignore --> | ||
```tsx | ||
// Input | ||
declare namespace abc1.def {} | ||
export namespace abc2.def {} | ||
|
||
// Prettier stable | ||
namespace abc1.def {} | ||
namespace abc2.def {} | ||
|
||
// Prettier main | ||
declare namespace abc1.def {} | ||
export namespace abc2.def {} | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
declare module abc1.def {} | ||
|
||
export declare module abc2.def {} | ||
|
||
export module abc3.def {} | ||
|
||
module abc4.def {} | ||
|
||
declare module abc5.def.ghi {} | ||
|
||
export declare module abc2.def.ghi {} | ||
|
||
export module abc3.def.ghi {} | ||
|
||
module abc4.def.ghi {} |
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,15 @@ | ||
declare namespace abc1.def {} | ||
|
||
export declare namespace abc2.def {} | ||
|
||
export namespace abc3.def {} | ||
|
||
namespace abc4.def {} | ||
|
||
declare namespace abc5.def.ghi {} | ||
|
||
export declare namespace abc2.def.ghi {} | ||
|
||
export namespace abc3.def.ghi {} | ||
|
||
namespace abc4.def.ghi {} |
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