streamich/react-use

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

Open

#856 geöffnet am 30. Dez. 2019

Auf GitHub ansehen
 (4 Kommentare) (8 Reaktionen) (0 zugewiesene Personen)TypeScript (3.273 Forks)batch import
buggood first issuehelp wanted

Repository-Metriken

Stars
 (43.979 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1743T 9h) (1 gemergte PR in 30 T)

Beschreibung

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

Contributor Guide