Skip to content

Commit 540224b

Browse files
committed
fix: Remove incorrect usage of "widening" (#405)
Using an intersection type here is actually narrowing the type, but the intent here seems to be to introduce type assertions, not talk about the difference between wider and narrower types.
1 parent 4d02a2f commit 540224b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/basic/getting-started/forms-and-events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ The first method uses an inferred method signature `(e: React.FormEvent<HTMLInpu
6161

6262
**Typing onSubmit, with Uncontrolled components in a Form**
6363

64-
If you don't quite care about the type of the event, you can just use React.SyntheticEvent. If your target form has custom named inputs that you'd like to access, you can use type widening:
64+
If you don't quite care about the type of the event, you can just use React.SyntheticEvent. If your target form has custom named inputs that you'd like to access, you can use a type assertion:
6565

6666
```tsx
6767
<form

0 commit comments

Comments
 (0)