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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,7 @@ Consider benefits when explicitly typing the return value of a function:
150
150
151
151
### Discriminated union
152
152
153
-
If there is only one TypeScript feature to choose, embrace discriminated unions.
153
+
If there's only one TypeScript feature to choose from, embrace discriminated unions.
154
154
155
155
Discriminated unions are a powerful concept to model complex data structures and improve type safety, leading to clearer and less error-prone code.
156
156
You may encounter discriminated unions under different names such as tagged unions or sum types in various programming languages as C, Haskell, Rust (in conjunction with pattern-matching).
0 commit comments