infinitered / infinitered/reactotron
When using reactotron-redux-saga on typescript it requires an argument
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.6k
- Forks
- 972
- PR merge metrics
- No merged PRs in 30d
Description
I was trying to use reactotron as ts file, and I have done this structure:
```javascript
import Reactotron from 'reactotron-react-js';
import { reactotronRedux } from 'reactotron-redux';
import reactotronSaga from 'reactotron-redux-saga';
if (process.env.NODE_ENV === 'development') {
const tron = Reactotron.configure()
.use(reactotronRedux())
.use(reactotronSaga())
.connect();
tron.clear();
console.tron = tron;
}
```
But when I try to compile, I get this error on "reactotronSaga":
```
Expected 1 arguments, but got 0.ts(2554)
index.d.ts(4, 26): An argument for 'pluginConfig' was not provided.
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the reactotron-redux-saga package's index.d.ts, especially the declaration referenced in the TypeScript error, and compare it with the zero-argument call in the issue's example. Confirm the intended API and verify that the example compiles without the missing-argument error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100