Skip to content

Commit

Permalink
Update docs/tutorials/typescript.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EskiMojo14 authored Jan 12, 2024
1 parent 78cdeac commit 04ca479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ import type { RootState, AppDispatch } from './store'

// highlight-start
// Use throughout your app instead of plain `useDispatch` and `useSelector`
export const useAppDispatch = useDispatch.withTypes<RootState>()
export const useAppDispatch = useDispatch.withTypes<AppDispatch>()
export const useAppSelector = useSelector.withTypes<RootState>()
// highlight-end
```
Expand Down

0 comments on commit 04ca479

Please sign in to comment.