final-form / final-form/react-final-form

Mapped type over FormProps is `{[string]: any}` since 6.5.2

Open
#874 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

This commit https://github.com/final-form/react-final-form/issues/864 introduced a breaking change for TypeScript users because now mapped types over `FormProps` return a dictionary of `any`.

For example:
```ts
type FinalFormWrapperProps<
FormValues extends object = Record,
InitialFormValues = Partial
> = Omit, 'validate'>;
```
Result before this commit:
Screenshot 2020-11-06 at 16 23 55

After:
Screenshot 2020-11-06 at 16 24 34

TypeScript 4.0.3
final-form 4.20.1
react-final-form 6.5.2

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.