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
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,7 +194,7 @@ const regularUser: User = {
194
194
};
195
195
```
196
196
197
-
### Discriminated union
197
+
### Discriminated Union
198
198
199
199
If there's only one TypeScript feature to choose from, embrace discriminated unions.
200
200
@@ -275,7 +275,7 @@ const iconColor: Color = 'blue-400';
275
275
const customColor:Color='#AD3128';
276
276
```
277
277
278
-
### Type-Safe Constants with `satisfies`
278
+
### Type-Safe Constants with satisfies
279
279
280
280
The `as const satisfies` syntax is a powerful feature in TypeScript that combines strict type-checking and immutability for constants. It is particularly useful when defining constants that need to conform to a specific type.
0 commit comments