Skip to content

Commit 1c570e8

Browse files
authored
Merge pull request #22 from briisk/interfaces-naming
TypeScript: interface/types naming #16
2 parents d427d05 + 9f97baf commit 1c570e8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

typescript/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Briisk TypeScript Style Guide
2+
3+
## Interfaces
4+
5+
<a name="interfaces--naming"></a><a name="1.1"></a>
6+
- [1.1](#interfaces--naming) Interfaces and types naming convention
7+
8+
> Why? For consistancy. Be aware that using this style with classes can cause conflicts.
9+
10+
```javascript
11+
interface User {
12+
name: string;
13+
}
14+
type Product = {
15+
name: string;
16+
}
17+
```

0 commit comments

Comments
 (0)