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 989ca3e commit cb53931
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 allows the TypeScript compiler to notify you if the suppressed line becomes error-free in the future.
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.

- 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 cb53931

Please sign in to comment.