Skip to content

Commit

Permalink
update docusaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosir committed Mar 8, 2024
1 parent f7c2c0b commit 3f3a39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ type Color = `${BaseColor}-${Variant}` | `#${string}`;

### Discriminated union

Discriminated unions are a powerful concept to model complex data structures and improve type safety in TypeScript codebases, leading to clearer, more maintainable, and less error-prone code.
Discriminated unions are a powerful concept to model complex data structures and improve type safety in TypeScript codebases, leading to clearer, more maintainable, and less error-prone code.
You may encounter discriminated unions under different names such as tagged unions or sum types in various programming languages C, Rust, Haskell etc.

Embrace using discriminated unions:
Expand Down

0 comments on commit 3f3a39b

Please sign in to comment.