microsoft / TypeScript-React-Starter

A starter template for TypeScript and React with a detailed README describing how to use the two together.
MIT License
11.09k stars 1.21k forks source link

these are wrong? you can help me find reason? #259

Open zwzy opened 5 years ago

zwzy commented 5 years ago

1、const store = createStore(enthusiasm, { enthusiasmLevel: 1, languageName: 'TypeScript', });

2、import { connect, Dispatch } from 'react-redux';

package.json "@types/jest": "24.0.3", "@types/node": "11.9.3", "@types/react": "16.8.2", "@types/react-dom": "16.8.0", "@types/react-redux": "^7.0.1", "react": "^16.8.1", "react-dom": "^16.8.1", "react-redux": "^6.0.0", "react-scripts": "2.1.5", "redux": "^4.0.1", "typescript": "3.3.3"

bgins commented 5 years ago

I ran into what I think might be similar issues. This changes mentioned in https://github.com/Microsoft/TypeScript-React-Starter/issues/240#issuecomment-443954408 solved them for me.