Andy Hanson
45c9246c09
Remove esModuleInterop from tsconfigs (no longer mandatory)
2018-02-14 14:55:13 -08:00
Forbes Lindesay
8f8f6c4392
[react] Use HTMLDialogElement for the dialog node ( #23053 )
...
* [react] Use HTMLDialogElement for the dialog node
* Actually add the `open` property
* This update requires typescript 2.6
* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs ( #23354 )
2018-02-05 11:01:56 -08:00
Jeremy Fauvel
3289762cca
[react-router] Improve withRouter return type ( #21329 )
...
* [react-router] Improve withRouter return type
* Fix lint errors
* Fix dependencies version
2017-11-23 19:33:27 +00:00
Pasi Eronen
6e4ad80b70
react-router/react-router-dom: fix typing for getUserConfirmation and Prompt props
2017-11-21 12:41:42 +02:00
Robin Zoň
5b22167627
React.Components template arguments fixed ( #21356 )
2017-11-08 22:35:07 +00:00
Daniel Earwicker
b820642362
react-router-dom - Added missing location property to NavLinkProps ( #20793 )
...
* Added missing location property to NavLinkProps
See https://reacttraining.com/react-router/web/api/NavLink
* Version 4.2
2017-10-27 17:24:45 -07:00
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