Skip to content

Commit

Permalink
update docusaurus
Browse files Browse the repository at this point in the history
  • Loading branch information
mkosir committed Dec 14, 2024
1 parent cb53931 commit 2538899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ const renderUserAvatar = (avatar: string) => {...}

### Type Error

When a TypeScript error cannot be mitigated, use `@ts-expect-error` as a last resort to suppress it. This directive enables the TypeScript compiler to indicate when the suppressed line no longer contains an error.
When a TypeScript error cannot be mitigated, use `@ts-expect-error` as a last resort to suppress it. 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.

- Always use `@ts-expect-error` with a clear description explaining why it is necessary.
- Avoid using `@ts-ignore`, as it does not provide the same level of safety and accountability as @ts-expect-error.
Expand Down

0 comments on commit 2538899

Please sign in to comment.