You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you submitting a bug report or a feature request?
Bug report.
What is the current behavior?
Trying to use getFormState as described in the docs results in Typescript compiler error TS2346 ("Supplied parameters do not match any signature of call target"):
Suppressing these errors and running this code anyway works as expected.
What is the expected behavior?
The Typescript compiler should flag up no warnings or errors for the code presented above.
What's your environment?
Redux Form 6.7.0
Windows 7 64-bit
Typescript 2.3.2
Electron 1.6.8
Node: >=7.4.0
Chromium: >=56.0.2924.87
V8: >=5.6.326.50
Other information
The source of this error is this incorrect type definition at @types/redux-form/lib/selectors.d.ts:
/** * Gets the names of all the forms currently managed by Redux-Form. * * The reason that this is a function that returns a function is twofold: * 1. symmetry with the other selectors * 2. to allow for the getFormState parameter described at the top of this page. * * If you are using ImmutableJS, it will return a List. */exportconstgetFormNames: <State>(state: State) =>string[];
Are you submitting a bug report or a feature request?
Bug report.
What is the current behavior?
Trying to use
getFormState
as described in the docs results in Typescript compiler error TS2346 ("Supplied parameters do not match any signature of call target"):Suppressing these errors and running this code anyway works as expected.
What is the expected behavior?
The Typescript compiler should flag up no warnings or errors for the code presented above.
What's your environment?
Other information
The source of this error is this incorrect type definition at
@types/redux-form/lib/selectors.d.ts
:This issue may relate to #2650.
The text was updated successfully, but these errors were encountered: