Skip to content

Commit c89a719

Browse files
committed
update docusaurus
1 parent 7880092 commit c89a719

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

website/src/pages/index.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,6 @@ Examples:
698698
699699
### Enums & Const Assertion
700700
701-
Const assertions must be used over enums.
702-
703701
Enums are generally discouraged in the TypeScript ecosystem due to their runtime cost and quirks.
704702
The TypeScript documentation outlines several [pitfalls](https://www.typescriptlang.org/docs/handbook/enums.html#const-enum-pitfalls), and recently introduced the [--erasableSyntaxOnly](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-8.html#the---erasablesyntaxonly-option) flag to disable runtime-generating features like enums altogether.
705703

0 commit comments

Comments
 (0)