infinitered / infinitered/reactotron

When using reactotron-redux-saga on typescript it requires an argument

Open
#1,184 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.