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

Issue on TypeScript `FieldInputProps` typings

Open
#693 1 comment 0 reactions 0 assignees View on GitHub
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

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.