Skip to content

Commit 6af0c29

Browse files
committed
update docusaurus
1 parent 79ca162 commit 6af0c29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/pages/index.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,11 @@ renderUserAvatar(user!.avatar); // Runtime error
420420
const renderUserAvatar = (avatar: string) => {...}
421421
```
422422

423-
### Type Error
423+
### Type Errors
424424

425425
When a TypeScript error cannot be mitigated, use `@ts-expect-error` as a last resort to suppress it.
426426

427-
This directive enables the TypeScript compiler to indicate when the suppressed line no longer contains an error, ensuring that suppressed errors are revisited when they are no longer relevant, unlike `@ts-ignore`, which can silently linger even after the error is resolved.
427+
This directive notifies the compiler when the suppressed error no longer exists, ensuring errors are revisited once they’re obsolete, unlike `@ts-ignore`, which can silently linger even after the error is resolved.
428428

429429
- Always use `@ts-expect-error` with a clear description explaining why it is necessary.
430430
- Avoid `@ts-ignore`, as it does not track suppressed errors.

0 commit comments

Comments
 (0)