Skip to content

Commit 04c6696

Browse files
committed
update docusaurus
1 parent 7c33db4 commit 04c6696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/pages/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ Discriminated unions advantages:
239239
- Discriminated unions make refactoring and maintenance easier by providing a centralized definition of related types. When adding or modifying types within the union, the compiler reports any inconsistencies throughout the codebase.
240240
- IDEs can leverage discriminated unions to provide better autocompletion and type inference.
241241

242-
### Type-Safe Constants with satisfies
242+
### Type-Safe Constants With Satisfies
243243

244244
The `as const satisfies` syntax is a powerful TypeScript feature that combines strict type-checking and immutability for constants. It is particularly useful when defining constants that need to conform to a specific type.
245245

@@ -888,7 +888,7 @@ While it's often hard to find the best name, aim to optimize code for consistenc
888888
} as const;
889889
```
890890
891-
If type exist use `satisfies` operator in conjunction with const assertion, to conform object matches its type.
891+
If type exist use [Type-Safe Constants With Satisfies](#type-safe-constants-with-satisfies).
892892
893893
```ts
894894
// OrderStatus is predefined (e.g. generated from database schema, API)

0 commit comments

Comments
 (0)