Skip to content

Commit

Permalink
Update React-Redux typedef info for 7.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson committed Mar 23, 2021
1 parent a87cd5f commit 010c3ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/using-react-redux/usage-with-typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ sidebar_label: Usage with TypeScript

# Usage with TypeScript

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

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.
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.

**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` ).


## Standard Redux Toolkit Project Setup with TypeScript
Expand Down

0 comments on commit 010c3ee

Please sign in to comment.