Skip to content

Commit 510b653

Browse files
committed
update docusaurus
1 parent cf60c16 commit 510b653

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/src/pages/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ Being expressive and keeping types as **narrow as possible** offers several bene
7575

7676
### Type Inference
7777

78-
As a rule of thumb, explicitly declare types when it helps to narrow them.
78+
As a rule of thumb, explicitly declare types only when it helps to narrow them.
7979

8080
<Note>
8181
Just because you don't need to add types doesn't mean you shouldn't. In some cases, explicitly declaring types can
8282
improve code readability and clarify intent.
8383
</Note>
8484

85-
Explicitly declare types when it helps to narrow them:
85+
Explicitly declare types when doing so helps to narrow them:
8686

8787
```ts
8888
// ❌ Avoid
@@ -98,7 +98,7 @@ type UserRole = 'admin' | 'guest';
9898
const [userRole, setUserRole] = useState<UserRole>('admin'); // Explicit type 'UserRole'
9999
```
100100

101-
Don't explicitly declare types when they can be inferred:
101+
Avoid explicitly declaring types when they can be inferred:
102102

103103
```ts
104104
// ❌ Avoid

0 commit comments

Comments
 (0)