Skip to content

Commit 9d4f0d8

Browse files
authored
Match official TS docs style for clarity
Closes #4463
1 parent a7938a5 commit 9d4f0d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/usage/UsageWithTypescript.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ import type { RootState, AppDispatch } from './store'
8787

8888
// highlight-start
8989
// Use throughout your app instead of plain `useDispatch` and `useSelector`
90-
export const useAppDispatch: () => AppDispatch = useDispatch
90+
type DispatchFunc = () => AppDispatch
91+
export const useAppDispatch: DispatchFunc = useDispatch
9192
export const useAppSelector: TypedUseSelectorHook<RootState> = useSelector
9293
// highlight-end
9394
```

0 commit comments

Comments
 (0)