17 Commits
Author SHA1 Message Date
Andy 947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
bergi9 8d952056e7 [React-Router-DOM] Fix exporting types for JetBrains IDE (#19856)
* Fix exporting types for JetBrains IDE

Rider always suggest me to use require instead of import because it didn't detect the imported type in the code.
Since this definitions use the declare module and the react-router definitions don't.

* Fix testing for trailing whitespace
2017-09-25 16:11:35 -07:00
Andy d74806eb3d Add lint disables for no-unnecessary-generics (#19508) 2017-09-01 08:34:37 -07:00
Stéphane Goetz a24aee6125 Improve react typings for HTML attributes, fix tests in other libraries 2017-07-10 22:43:07 +02:00
beary 9cbb40a080 Browser and Hash RouterProps is TS specific. 2017-07-06 15:02:21 +08:00
beary 99733b1746 Expose BrowserRouterProps and HashRouterProps interface. 2017-07-06 14:38:54 +08:00
Tanguy Krotoff ea9de8a518 Replace React.Component<(.*), (any|void|\{\}|null)> by React.Component<$1>
+ many manual adjustments
2017-06-19 13:35:50 +02:00
Tanguy Krotoff eeb262e1d8 Update react to TypeScript 2.3 2017-06-19 13:34:54 +02:00
Ryan Cavanaugh 650ea4d2d3 Merge pull request #15699 from huy-nguyen/fix-react-router-dom
Minor change to react-router-dom
2017-04-17 11:39:28 -07:00
Andy bbc61fbf93 Extend "dtslint/dt.json" directly instead of "../tslint.json". (#15822)
* Extend "dtslint/dt.json" directly instead of "../tslint.json".

* Convert more "../tslint.json" to "dtslint/dt.json"

* no-redundant-modifiers -> strict-export-declare-modifiers
2017-04-14 08:04:05 -07:00
Huy Nguyen 121342e175 Add test 2017-04-06 20:21:06 -04:00
Huy Nguyen b80da73f63 Expose interface NavLinkProps
Because it's useful in case one needs to build higher-order components
that wrap `NavLink`.
2017-04-06 18:04:28 -04:00
Huy Nguyen 95a2eddf3b Fix definition of isActive prop to NavLink 2017-04-06 18:04:02 -04:00
Andy 68e0aea47a Lint additional react packages (#15527) 2017-03-30 14:25:38 -07:00
Huy Nguyen 7da5a5871f Update contributor credits 2017-03-28 14:02:24 -04:00
Huy Nguyen 3e626b8949 Add type of context for react-router & react-router-dom
The `Router` component passes a context object down to children.  This
commit adds the type definition for this context object for children of
`Router` to use.
2017-03-28 13:57:16 -04:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00