From 3f3a39b7970fb02124be49d8090ecf33ff17f067 Mon Sep 17 00:00:00 2001 From: mkosir Date: Fri, 8 Mar 2024 19:30:14 +0100 Subject: [PATCH] update docusaurus --- website/src/pages/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/pages/index.mdx b/website/src/pages/index.mdx index 93a18e07..6d949ce5 100644 --- a/website/src/pages/index.mdx +++ b/website/src/pages/index.mdx @@ -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: