mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00: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.
}
```
|
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| package.json | ||
| react-dates-tests.tsx | ||
| tsconfig.json | ||