Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdd8c38f

Browse files
authored
Merge pull request#57 from chiubaka/patch-1
Add some info about usage in TypeScript
2 parentscf087c7 +624e9e2 commitdd8c38f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎README.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ export default createStore(
4141

4242
For a working example, see the[example](./example/) directory.
4343

44+
###TypeScript
45+
`raven-for-redux` has TypeScript bindings available through[DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/b7ca35ab023ba1758de9e07004adde71e911c28e/types/raven-for-redux/index.d.ts). Please note the import style below, as it differs from the JavaScript example and is required for these typings.
46+
```TypeScript
47+
import*asRavenfrom"raven-js";
48+
import*ascreateRavenMiddlewarefrom"raven-for-redux";
49+
import {applyMiddleware,createStore }from"redux";
50+
51+
//... (same as JavaScript example, but now with proper typings)
52+
```
53+
4454
##Improvements
4555

4656
This library makes, what I think are, a few improvements over

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp