final-form / final-form/react-final-form
Issue on TypeScript `FieldInputProps` typings
Open
- Dominant language
- JavaScript
- Stars
- 7.4k
- Forks
- 497
- PR merge metrics
- No merged PRs in 30d
Description
about #606
## Description
`FieldInputProps` extends `AnyObject` cause `keyof` unexpected operation.
https://github.com/microsoft/TypeScript/issues/35600
## example
```ts
type KeyOfFieldInputProps = keyof FieldInputProps;
// type KeyOfFieldInputProps = 'string' | 'number';
```
in my opinion, extending `AnyObject` is unnecessary, cuz the type definition must be exactly.
Contributor guide
Assessment
This issue has not been assessed yet.