Skip to content

Commit 13f1508

Browse files
committed
update docusaurus
1 parent bc657b1 commit 13f1508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/pages/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ type UserStatus = 'pending' | 'processing' | 'confirmed' | 'expired';
525525
const userStatus: UserStatus;
526526
```
527527
528-
When maintaining code that makes the number of possible states grows quickly because use of flags, there are almost always unhandled states, utilize [discriminated union](#discriminated-union).
528+
When boolean flags are used and the number of possible states grows quickly, it often results in unhandled or ambiguous states. Instead, take advantage of [discriminated unions](#discriminated-union) to better manage and represent your application's state.
529529
530530
### Null & Undefined
531531

0 commit comments

Comments
 (0)