redux-saga-test-plan: Typescript error with ^4.0.0-beta.2
I wanted to install redux-saga-test-plan and I got some typing errors. So I tried to update the dependencies and I finally end up with the following dependency versions: “typescript”: “^3.1.1”, “redux-saga”: “^1.0.1”, “redux-saga-test-plan”: “^4.0.0-beta.2”,
and I see this type-checking error:
node_modules/redux-saga-test-plan/effects.d.ts:13:16 - error TS2314: Generic type 'Pattern' requires 1 type argument(s).
13 (pattern?: E.Pattern): R;
~~~~~~~~~
I also tried with the last typescript version (3.3) and same error.
I investigated a little bit and it looks like this Pattern type changed 2 months ago in redux-saga (https://github.com/redux-saga/redux-saga/blob/master/packages/types/index.d.ts) but maybe the problem appears only with the recent versions of typescript…
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 17 (1 by maintainers)
Hey, folks. Sorry for the delay. I’ve published v4.0.0-beta.3. I’m working with @jp928 to give him publish access so I don’t slow things down.
@Favna @fabienchn I had informed the author via another channel who has the privilege to publish to npm. It should be coming soon. Thanks for using the library.
@Fabienchn just set the “skipLibCheck” compiler option
Confirming this issue still occurs. Relevant package versions:
Exact Error:
It is temporarily resolved by adding
"skibLibCheck": trueto thetsconfigbut this value should not be required for end-users