Skip to content

Commit af37aa3

Browse files
committed
[docs] Typescript support links
Closes #599
1 parent bb153be commit af37aa3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: README.md

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Note that [`preloadedState`](http://redux.js.org/docs/api/createStore.html) argu
4444

4545
> For universal ("isomorphic") apps, prefix it with `typeof window !== 'undefined' &&`.
4646
47+
> For TypeScript use [`redux-devtools-extension` npm package](#13-use-redux-devtools-extension-package-from-npm), which contains all the definitions, or just use `(window as any)` (see [Recipes](/docs/Recipes.md#using-in-a-typescript-project) for an example).
48+
4749
In case ESLint is configured to not allow using the underscore dangle, wrap it like so:
4850
```diff
4951
+ /* eslint-disable no-underscore-dangle */

Diff for: docs/Recipes.md

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
### Using in a typescript project
44

5+
The recommended way is to use [`redux-devtools-extension` npm package](/README.md#13-use-redux-devtools-extension-package-from-npm), which contains all typescript definitions. Or you can just use `window as any`:
6+
57
```js
68
const store = createStore(
79
rootReducer,

0 commit comments

Comments
 (0)