Types for 7.7 conflict with redux
See original GitHub issueDescribe the bug
Typings for before v9.3.1 throw in typescript (affecting react-sortable-tree
and react-sortable-tree-theme-file-explorer
)
In 7.7 you included in interfaces.ts
import { Unsubscribe } from 'redux';
export type Unsubscribe = () => void;
while this was valid back then it now throws with typescript@next
Steps to reproduce the behavior:
- Clone DefinitelyTyped repo
- npm install
- npm run test react-sortable-tree
- See error
Expected behavior No type error
Additional context This particular problematic redeclaration is gone in v9. I would appreciate it if you could backport #1459 to v7 (remove the import from redux)
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Usage With TypeScript - Redux
React Redux has its type definitions in a separate @types/react-redux typedefs package on NPM. In addition to typing the library functions, ...
Read more >Why is VS Code importing from "hoist-non-react-statics ...
It seems to be an issue with the @types relating to react. I filed an issue on the react-redux github repo. yarn upgrade...
Read more >Up & Running with React, Redux Toolkit, Typescript and ...
In this article, we will learn how to use React, Typescript and Redux Toolkit together. The goal is to build a basic CRUD...
Read more >React Redux-Toolkit Shopping Cart App - YouTube
React Redux -Toolkit Shopping Cart App | Redux -Persist with Redux -Toolkit. 7.7 K views 8 months ago ... 7.7 K views 8...
Read more >PTX ISA :: CUDA Toolkit Documentation
Directive keywords begin with a dot, so no conflict is possible with ... redux.sync.op.type dst, src, membermask; .op = {.add, .min, .max} .type...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same problem. Adding
declare module 'redux';
todefault.d.ts
fixed the problem. This is a good workaround if you don’t useredux
.No longer reproduces.