DefinitelyTyped/types/react-router
Diogo Franco 399af551e6 [react-router] Fix for --strictFunctionTypes (#20746)
* [react-router] Fix for --strictFunctionTypes

It seems it's not possible for a SFC to conform to React.ComponentType<RouteComponentProps<any> | {}> with both strictFunctionTypes and strictNullChecks (they have to either be `Partial<RouteComponentProps<any>>` or `{}`).

The whole point of the `| {}` is to allow for components that have defaulted `Props` / don't use any `Props` anyway, so adding it as another listed type should work.

* Fix dtslint errors
2017-10-20 08:28:12 -07:00
..
test [react]: Remove deprecated+removed APIs (#20409) 2017-10-16 15:22:04 -07:00
v2
v3
index.d.ts [react-router] Fix for --strictFunctionTypes (#20746) 2017-10-20 08:28:12 -07:00
tsconfig.json
tslint.json