Skip to content

Commit 575b7d3

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 61d2360 + d66665d commit 575b7d3

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,7 @@ interface Config {
14401440

14411441
//...
14421442

1443-
type Shape {
1443+
type Shape = {
14441444
// ...
14451445
}
14461446
```
@@ -1449,11 +1449,11 @@ type Shape {
14491449
14501450
```ts
14511451

1452-
type EmailConfig {
1452+
type EmailConfig = {
14531453
// ...
14541454
}
14551455

1456-
type DbConfig {
1456+
type DbConfig = {
14571457
// ...
14581458
}
14591459

@@ -2613,8 +2613,8 @@ const Artists = ['ACDC', 'Led Zeppelin', 'The Beatles'];
26132613
function eraseDatabase() {}
26142614
function restore_database() {}
26152615

2616-
type animal { /* ... */ }
2617-
type Container { /* ... */ }
2616+
type animal = { /* ... */ }
2617+
type Container = { /* ... */ }
26182618
```
26192619
26202620
**Good:**
@@ -2629,8 +2629,8 @@ const ARTISTS = ['ACDC', 'Led Zeppelin', 'The Beatles'];
26292629
function eraseDatabase() {}
26302630
function restoreDatabase() {}
26312631

2632-
type Animal { /* ... */ }
2633-
type Container { /* ... */ }
2632+
type Animal = { /* ... */ }
2633+
type Container = { /* ... */ }
26342634
```
26352635
26362636
Prefer using `PascalCase` for class, interface, type and namespace names.
@@ -2980,12 +2980,14 @@ function getActiveSubscriptions(): Promise<Subscription[]> {
29802980

29812981
## Translations
29822982

2983-
There is work in progress for translating this to:
2983+
This is also available in other languages:
2984+
- ![br](https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Brazil.png) **Brazilian Portuguese**: [vitorfreitas/clean-code-typescript](https://github.com/vitorfreitas/clean-code-typescript)
29842985

2985-
- Brazilian portuguese
2986-
- Chinese
2987-
- Japanese
2988-
- Korean
2986+
There is work in progress for translating this to other languages:
2987+
2988+
- ![cn](https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/China.png) Chinese
2989+
- ![ja](https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/Japan.png) Japanese
2990+
- ![kr](https://raw.githubusercontent.com/gosquared/flags/master/flags/flags/shiny/24/South-Korea.png) Korean
29892991

29902992
References will be added once translations are completed.
29912993
Check this [discussion](https://github.com/labs42io/clean-code-typescript/issues/15) for more details and progress.

0 commit comments

Comments
 (0)