davidkpiano/react-redux-form

0.16.9 has invalid Typescript definitions

bjchambers opened this issue · 2 comments

The Problem

Latest version fails when used with Typescript. Error is as follows:

react-redux-form.d.ts
(45,67): Cannot find name 'bool'.

Steps to Reproduce

Use react-redux-form 0.16.9 with Typescript.

Expected Behavior

No error -- type definitions work.

Actual Behavior

Fails, as described above.

Reproducible Code Example

https://codesandbox.io/s/qzvmpv0qp6

(Error does not show up in codesandbox, but reproduces after download and "yarn install", "yarn start").

@davidkpiano
I think, there is another problem with types

node_modules/react-redux-form/react-redux-form.d.ts
(235,20): Cannot find name 'ChangeEvent'.

Typescript 2.9.2

Please create a PR, thanks!