mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-06 22:35:57 +08:00
React dates accepts but more importantly returns `null` as a valid focused state.
Not having this in the typings allows unexpected errors when using `strictNulls` checking.
```typescript
if (focusedInput !== undefined) {
// focusedInput input could be null here, but the type system does not acknowledge that.
}
```