streamich/react-use

createReducer not working with Typescript (type def errors showing up)

开放

#856 创建于 2019年12月30日

 (4 条评论) (8 个反应) (0 位负责人)TypeScript (3,273 个派生)batch import
buggood first issuehelp wanted

仓库指标

星标
 (43,979 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

What is the current behavior? At the moment if you use useReducer as in the documentation you get weird errors when using Typescript: image

What is the expected behavior? It should work without complaining

A little about versions:

  • Typescript 3.5.3 - Typescript 3.7.4
  • OS: Mojave
  • Browser (vendor and version):
  • React:
  • react-use: 13.12.2 - 13.13.0
  • redux-thunk: 2.3.0
  • redux: 4.0.4
  • @types/react-redux: 7.1.1 - 7.1.5

贡献者指南