From 464c24f6e9fd748e2d0c63a36c8dc66abbd6e2cd Mon Sep 17 00:00:00 2001 From: mkosir Date: Sun, 22 Dec 2024 11:03:24 +0100 Subject: [PATCH] update docusaurus --- website/src/pages/index.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/src/pages/index.mdx b/website/src/pages/index.mdx index 54f23bf..56eb156 100644 --- a/website/src/pages/index.mdx +++ b/website/src/pages/index.mdx @@ -642,6 +642,8 @@ Constants are used to represent values that are not meant to change, ensuring re - Type Narrowing - Using `as const` ensures that literal values (e.g., numbers, strings) are treated as exact values instead of generalized types like `number` or `string`. - Immutability - Objects and arrays get readonly properties, preventing accidental mutations. +Examples: + - Objects ```ts