使用typescript和react + redux有问题
\w+-\w+-(?:[a-z0-9]+|[A-Z]+)
尝试从react-redux
获取提供者Could not find a declaration file for module 'react-redux'. '/home/andrew/miramir/src/js/node_modules/react-redux/lib/index.js' implicitly has an 'any' type.
我如何解决它? 谢谢
答案 0 :(得分:24)
您应该只需将所需类型添加到项目中,如下所示:
npm install --save-dev @types/react-redux
答案 1 :(得分:2)
已修复
select '01/01/2000' as Day1, '01/02/2002' as Day2,
'05/01/2003' as Day3, '01/01/1999' as Day4,
'08/01/1998' as Day5, '01/19/2010' as Day6,
'01/01/2000' as Day7, '01/01/2011' as Day8,
'12/05/2000' as Day9, '01/01/2017' as Day10