@@ -1440,7 +1440,7 @@ interface Config {
1440
1440
1441
1441
// ...
1442
1442
1443
- type Shape {
1443
+ type Shape = {
1444
1444
// ...
1445
1445
}
1446
1446
` ` `
@@ -1449,11 +1449,11 @@ type Shape {
1449
1449
1450
1450
` ` ` ts
1451
1451
1452
- type EmailConfig {
1452
+ type EmailConfig = {
1453
1453
// ...
1454
1454
}
1455
1455
1456
- type DbConfig {
1456
+ type DbConfig = {
1457
1457
// ...
1458
1458
}
1459
1459
@@ -2613,8 +2613,8 @@ const Artists = ['ACDC', 'Led Zeppelin', 'The Beatles'];
2613
2613
function eraseDatabase() {}
2614
2614
function restore_database() {}
2615
2615
2616
- type animal { /* ... */ }
2617
- type Container { /* ... */ }
2616
+ type animal = { /* ... */ }
2617
+ type Container = { /* ... */ }
2618
2618
` ` `
2619
2619
2620
2620
**Good:**
@@ -2629,8 +2629,8 @@ const ARTISTS = ['ACDC', 'Led Zeppelin', 'The Beatles'];
2629
2629
function eraseDatabase() {}
2630
2630
function restoreDatabase() {}
2631
2631
2632
- type Animal { /* ... */ }
2633
- type Container { /* ... */ }
2632
+ type Animal = { /* ... */ }
2633
+ type Container = { /* ... */ }
2634
2634
` ` `
2635
2635
2636
2636
Prefer using ` PascalCase ` for class, interface, type and namespace names.
@@ -2980,12 +2980,14 @@ function getActiveSubscriptions(): Promise<Subscription[]> {
2980
2980
2981
2981
## Translations
2982
2982
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 )
2984
2985
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
2989
2991
2990
2992
References will be added once translations are completed.
2991
2993
Check this [ discussion] ( https://github.com/labs42io/clean-code-typescript/issues/15 ) for more details and progress.
0 commit comments