You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/src/pages/index.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,9 +68,9 @@ The Style Guide assumes the use of, but is not limited to:
68
68
When creating types, consider how they would best **describe our code**.
69
69
Being expressive and keeping types as **narrow as possible** offers several benefits to the codebase:
70
70
71
-
- Increased Type Safety - Catch errors at compile-time, since narrowed types provide more specific information about the shape and behavior of your data.
72
-
- Improved Code Clarity - Cognitive load is reduced by providing clearer boundaries and constraints on your data which makes your code easier to understand by other developers.
73
-
- Easier Refactoring - Refactor with confidence, since types are narrow, making changes to your code becomes less risky.
71
+
- Increased Type Safety - Catch errors at compiletime, as narrowed types provide more specific information about the shape and behavior of your data.
72
+
- Improved Code Clarity - Reduces cognitive load by providing clearer boundaries and constraints on your data, making your code easier for other developers to understand.
73
+
- Easier Refactoring - With narrower types, making changes to your code becomes less risky, allowing you to refactor with confidence.
74
74
- Optimized Performance - In some cases, narrow types can help the TypeScript compiler generate more optimized JavaScript code.
0 commit comments