Skip to content

Commit 010c3ee

Browse files
committedMar 23, 2021
Update React-Redux typedef info for 7.2.3
1 parent a87cd5f commit 010c3ee

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎docs/using-react-redux/usage-with-typescript.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ sidebar_label: Usage with TypeScript
77

88
# Usage with TypeScript
99

10-
React-Redux itself is currently written in plain JavaScript. However, it works well with static type systems such as TypeScript.
10+
React Redux itself is currently written in plain JavaScript. However, it works well with static type systems such as TypeScript.
1111

12-
React-Redux doesn't ship with its own type definitions. If you are using TypeScript you should install the [`@types/react-redux` type definitions](https://npm.im/@types/react-redux) from NPM. In addition to typing the library functions, the types also export some helpers to make it easier to write typesafe interfaces between your Redux store and your React components.
12+
The React Redux type definitions are a separate [`@types/react-redux` typedefs package](https://npm.im/@types/react-redux) on NPM. In addition to typing the library functions, the types also export some helpers to make it easier to write typesafe interfaces between your Redux store and your React components.
13+
14+
**As of React Redux v7.2.3, the `react-redux` package has a dependency on `@types/react-redux`, so the type definitions will be automatically installed with the library**. Otherwise, you'll need to manually install them yourself ( `npm install @types/react-redux` ).
1315

1416

1517
## Standard Redux Toolkit Project Setup with TypeScript

0 commit comments

Comments
 (0)
Please sign in to comment.