Skip to content

Commit 04ca479

Browse files
authored
Update docs/tutorials/typescript.md
1 parent 78cdeac commit 04ca479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import type { RootState, AppDispatch } from './store'
8484

8585
// highlight-start
8686
// Use throughout your app instead of plain `useDispatch` and `useSelector`
87-
export const useAppDispatch = useDispatch.withTypes<RootState>()
87+
export const useAppDispatch = useDispatch.withTypes<AppDispatch>()
8888
export const useAppSelector = useSelector.withTypes<RootState>()
8989
// highlight-end
9090
```

0 commit comments

Comments
 (0)